// Lean compiler output
// Module: Lean.Elab.ElabRules
// Imports: public import Lean.Elab.MacroArgUtil public import Lean.Elab.AuxDef public import Lean.Elab.Do.Basic meta import Lean.Parser.Syntax
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#ifdef __cplusplus
extern "C" {
#endif
static lean_object* l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4_spec__5___closed__2;
LEAN_EXPORT lean_object* l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__5;
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___lam__2___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__5;
LEAN_EXPORT lean_object* l_Lean_mkIdentFromRef___at___00Lean_Elab_Command_elabElabRulesAux_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__2;
static lean_object* l_Lean_Elab_Command_elabElab___closed__14;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__51;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__4;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElab(lean_object*, lean_object*, lean_object*);
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3(lean_object*, lean_object*, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
size_t lean_usize_shift_right(size_t, size_t);
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_TSyntax_getId(lean_object*);
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___00Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__8_spec__8___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElabRulesAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRules___lam__1___closed__6;
static lean_object* l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__18;
lean_object* l_Lean_Syntax_getQuotContent(lean_object*);
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAtAux___at___00Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Command_getScope___redArg(lean_object*);
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__4;
LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at___00Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3_spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__60;
static size_t l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3___redArg___closed__0;
lean_object* l_Lean_Environment_header(lean_object*);
extern lean_object* l_Lean_maxRecDepthErrorMessage;
LEAN_EXPORT lean_object* l_Lean_mkIdentFromRef___at___00Lean_Elab_Command_elabElabRulesAux_spec__0___redArg(lean_object*, uint8_t, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__48;
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg___boxed(lean_object*);
lean_object* l_Lean_indentD(lean_object*);
static lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__0;
static lean_object* l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__5;
static lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__4;
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___00Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__8_spec__8(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__70;
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__29;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__16;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElabRules___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElab___closed__9;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__13;
size_t lean_uint64_to_usize(uint64_t);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElabRules___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_visibility_ofAttrKind(lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__15;
static lean_object* l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__11;
static lean_object* l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1___closed__2;
static lean_object* l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__4;
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__3;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__50;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__69;
LEAN_EXPORT lean_object* l_Lean_getMainModule___at___00Lean_Elab_Command_elabElabRulesAux_spec__1___boxed(lean_object*, lean_object*, lean_object*);
lean_object* lean_array_push(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__2;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__45;
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__71;
lean_object* l_Lean_KVMap_find(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__11___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_Name_isAnonymous(lean_object*);
lean_object* l_Lean_Syntax_getArgs(lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__28;
lean_object* l_Lean_replaceRef(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__43;
LEAN_EXPORT lean_object* l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3(lean_object*, uint8_t, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__75;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElabRules___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Command_elabCommand(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__67;
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_getMainModule___at___00Lean_Elab_Command_elabElabRulesAux_spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__0(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElab___closed__2;
lean_object* l_Lean_addBuiltinDeclarationRanges(lean_object*, lean_object*);
lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*, uint8_t);
lean_object* lean_array_fget_borrowed(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElab___closed__4;
lean_object* l_Lean_Syntax_node5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__77;
static lean_object* l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__7;
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*);
lean_object* l_Array_mkArray5___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_stringToMessageData(lean_object*);
static lean_object* l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab__1___closed__0;
extern lean_object* l_Lean_instInhabitedEffectiveImport_default;
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__9;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__27;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__23;
uint8_t lean_string_dec_eq(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__73;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__33;
lean_object* l_Array_unzip___redArg(lean_object*);
static lean_object* l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__6;
lean_object* l_Array_mkArray0(lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__38;
LEAN_EXPORT lean_object* l_Lean_getMainModule___at___00Lean_Elab_Command_elabElabRulesAux_spec__1___redArg(lean_object*);
static lean_object* l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__1;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__64;
static lean_object* l_Lean_Elab_Command_elabElabRules___lam__0___closed__2;
LEAN_EXPORT lean_object* l_liftExcept___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__2(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__37;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__11;
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__12;
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___00Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__8_spec__8___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_liftExcept___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__2___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElab___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_getMainModule___at___00Lean_Elab_Command_elabElabRulesAux_spec__1___redArg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElab_spec__16___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__5;
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Nat_reprFast(lean_object*);
lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___closed__0;
LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab__1___closed__1;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__32;
size_t lean_usize_of_nat(lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__52;
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Array_mkArray1___redArg(lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__4;
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__15;
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAtAux___at___00Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3_spec__3___redArg___boxed(lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_Elab_Command_instInhabitedScope_default;
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__6;
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__11___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Command_elabElabRulesAux_spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__6;
static lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__0;
static lean_object* l_Lean_Elab_Command_elabElabRules___lam__0___closed__0;
lean_object* lean_st_ref_take(lean_object*);
extern lean_object* l_Lean_Elab_Command_commandElabAttribute;
lean_object* l_Lean_Elab_expandMacroImpl_x3f(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__10;
static lean_object* l_Lean_isTracingEnabledFor___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__0___redArg___closed__0;
lean_object* l_Lean_ResolveName_resolveNamespace(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_mkPrivateName(lean_object*, lean_object*);
uint64_t lean_uint64_shift_right(uint64_t, uint64_t);
uint8_t l_Lean_isMarkedMeta(lean_object*, lean_object*);
lean_object* l_Lean_SourceInfo_fromRef(lean_object*, uint8_t);
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElab___closed__15;
static lean_object* l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__4;
lean_object* l_Lean_MessageData_ofSyntax(lean_object*);
lean_object* l_Lean_Syntax_node6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Array_empty(lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__18;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules__1___boxed(lean_object*);
static lean_object* l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__4;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElabRulesAux___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElabRulesAux___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Command_expandNoKindMacroRulesAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules__1___closed__2;
static lean_object* l_Lean_Elab_Command_elabElab___closed__0;
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___lam__2(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_getKind(lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__53;
lean_object* l_Lean_Syntax_TSepArray_getElems___redArg(lean_object*);
lean_object* l_Lean_MessageData_ofFormat(lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__8;
lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_List_forM___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__12(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___boxed(lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRules___lam__1___closed__4;
LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3___redArg(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__6;
LEAN_EXPORT uint8_t l_Lean_Option_get___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4_spec__4(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___lam__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__3;
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_indirectModUseExt;
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2(lean_object*, lean_object*, lean_object*);
double lean_float_of_nat(lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__0;
lean_object* lean_st_ref_get(lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__26;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__59;
static lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__5;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__20;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__36;
lean_object* l_Lean_Syntax_node3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__6;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__1;
uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__8___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__40;
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRules___lam__1___closed__2;
static lean_object* l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__3;
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__8(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__12;
LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__0___redArg(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElab___closed__13;
LEAN_EXPORT lean_object* l_Lean_Option_get___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4_spec__4___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_privateToUserName(lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__3;
lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3();
static lean_object* l_Lean_Elab_Command_elabElab___closed__1;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__42;
lean_object* l_Lean_PersistentArray_push___redArg(lean_object*, lean_object*);
static lean_object* l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__6;
static lean_object* l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__0;
lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__63;
lean_object* l_Lean_Elab_Command_elabSyntax(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElab___closed__12;
uint8_t lean_name_eq(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg___closed__1;
extern lean_object* l_Lean_Elab_pp_macroStack;
lean_object* l_Lean_Syntax_node2(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__1;
static lean_object* l_Lean_Elab_Command_elabElabRules___lam__1___closed__7;
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__61;
static lean_object* l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__6;
static lean_object* l_Lean_Elab_Command_elabElabRules___lam__1___closed__0;
LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_Syntax_matchesNull(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__72;
static double l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1___closed__0;
lean_object* l_Lean_Elab_Command_resolveSyntaxKind(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__46;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__65;
static lean_object* l_Lean_Elab_Command_elabElabRules___lam__1___closed__5;
static lean_object* l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__14;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__68;
lean_object* lean_mk_syntax_ident(lean_object*);
static lean_object* l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1___closed__1;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__19;
lean_object* l_Lean_instBEqExtraModUse_beq___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__0;
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__11;
lean_object* l_Array_mkArray2___redArg(lean_object*, lean_object*);
extern lean_object* l___private_Lean_ExtraModUses_0__Lean_extraModUses;
static lean_object* l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__2;
static lean_object* l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__4;
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3___redArg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElab_spec__16(size_t, size_t, lean_object*);
lean_object* l_String_toRawSubstring_x27(lean_object*);
LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*);
lean_object* lean_usize_to_nat(size_t);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__44;
lean_object* l_Lean_SimplePersistentEnvExtension_getState___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_Environment_contains(lean_object*, lean_object*, uint8_t);
extern lean_object* l_Lean_inheritedTraceOptions;
uint64_t l_Lean_instHashableExtraModUse_hash(lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__2;
static lean_object* l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__5;
static lean_object* l_Lean_Elab_Command_elabElab___closed__5;
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___boxed(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Command_getRef___redArg(lean_object*);
static lean_object* l_Lean_Elab_Command_elabElab___closed__8;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules__1();
static lean_object* l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__3;
lean_object* l_Lean_evalOptPrio(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__0;
lean_object* l_Lean_Syntax_node4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_List_head_x21___redArg(lean_object*, lean_object*);
static size_t l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3___redArg___closed__1;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__5;
static lean_object* l_Lean_Elab_Command_elabElab___closed__3;
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_setArg(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__17;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__10;
static lean_object* l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules__1___closed__0;
uint8_t l_Lean_Syntax_isQuot(lean_object*);
static lean_object* l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__15;
lean_object* lean_array_fget(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__39;
LEAN_EXPORT lean_object* l_liftExcept___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__2___redArg___boxed(lean_object*, lean_object*);
static lean_object* l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__13;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__54;
static lean_object* l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4_spec__5___closed__1;
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3___redArg___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__58;
static lean_object* l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__1;
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__5;
static lean_object* l_Lean_Elab_Command_elabElab___closed__6;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__14;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__66;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab__1___boxed(lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__21;
LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__17;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__24;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__55;
static lean_object* l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__4;
lean_object* l_Lean_Syntax_SepArray_ofElems(lean_object*, lean_object*);
lean_object* l_Lean_Name_beq___boxed(lean_object*, lean_object*);
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___lam__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__1;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElabRules___lam__1(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Command_adaptExpander(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__57;
static lean_object* l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__16;
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__1;
uint8_t l_Lean_Elab_Command_checkRuleKind(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__2;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__9;
static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg___closed__0;
LEAN_EXPORT lean_object* l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4_spec__5(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_node1(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__0;
static lean_object* l_Lean_Elab_Command_elabElab___closed__16;
LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3___redArg(lean_object*, size_t, lean_object*);
lean_object* lean_array_set(lean_object*, lean_object*, lean_object*);
uint64_t l_Lean_Name_hash___override(lean_object*);
static lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__4;
uint64_t lean_uint64_xor(uint64_t, uint64_t);
uint8_t l_Lean_instBEqExtraModUse_beq(lean_object*, lean_object*);
static lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__5;
static lean_object* l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__8;
uint8_t l_Lean_Syntax_isNone(lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__17;
lean_object* l_List_reverse___redArg(lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRules___lam__1___closed__3;
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__8;
lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__41;
lean_object* l_Array_append___redArg(lean_object*, lean_object*);
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__18;
static lean_object* l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4_spec__5___closed__0;
static lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__3;
static lean_object* l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__2;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab__1();
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__62;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__74;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__56;
lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*);
lean_object* l_Lean_PersistentEnvExtension_addEntry___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__7;
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__8___redArg(lean_object*, lean_object*);
static lean_object* l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__0;
lean_object* l_Lean_Environment_getModuleIdxFor_x3f(lean_object*, lean_object*);
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__10;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__47;
static lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__1;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElab_spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__22;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElabRulesAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_instHashableExtraModUse_hash___boxed(lean_object*);
static lean_object* l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__2;
size_t lean_usize_sub(size_t, size_t);
LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at___00Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3_spec__3___redArg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___00Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__8_spec__8___redArg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3___redArg(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__7;
size_t lean_usize_add(size_t, size_t);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3();
static lean_object* l_Lean_Elab_Command_elabElab___closed__10;
lean_object* l_Lean_PersistentHashMap_empty(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_node8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__1;
static lean_object* l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__3;
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__14;
lean_object* lean_array_uget(lean_object*, size_t);
static lean_object* l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__2;
size_t lean_array_size(lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__31;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__76;
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRules___lam__0___closed__1;
lean_object* lean_st_ref_set(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__35;
lean_object* l_Lean_Name_mkStr1(lean_object*);
size_t lean_usize_shift_left(size_t, size_t);
lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__12;
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__8___redArg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRules___lam__1___closed__1;
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__49;
static lean_object* l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__9;
static lean_object* l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__1;
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__13;
static lean_object* l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules__1___closed__1;
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__2;
static lean_object* l_Lean_Elab_Command_elabElabRules___lam__0___closed__3;
lean_object* lean_array_get_size(lean_object*);
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_mkIdentFromRef___at___00Lean_Elab_Command_elabElabRulesAux_spec__0(lean_object*, uint8_t, lean_object*, lean_object*);
static lean_object* l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__3;
static lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__3;
lean_object* lean_array_get(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__5;
lean_object* l_Lean_Elab_Command_getCurrMacroScope___redArg(lean_object*);
extern lean_object* l_Lean_Elab_unsupportedSyntaxExceptionId;
static lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__2;
uint8_t lean_usize_dec_lt(size_t, size_t);
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElabRules(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__34;
lean_object* lean_nat_add(lean_object*, lean_object*);
static lean_object* l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__3;
LEAN_EXPORT lean_object* l_liftExcept___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElabRules___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__0;
lean_object* l_Lean_Environment_setExporting(lean_object*, uint8_t);
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Command_elabElabRulesAux_spec__9(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__25;
static lean_object* l_Lean_Elab_Command_elabElab___closed__11;
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg(lean_object*);
static lean_object* l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__0;
LEAN_EXPORT lean_object* l_Lean_mkIdentFromRef___at___00Lean_Elab_Command_elabElabRulesAux_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
lean_object* l_Lean_MessageData_ofName(lean_object*);
lean_object* l_Lean_Name_hash___override___boxed(lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElab_spec__15(size_t, size_t, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabElab___closed__7;
size_t lean_usize_land(size_t, size_t);
static lean_object* l_Lean_Elab_Command_elabElabRulesAux___closed__30;
static lean_object* l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__1;
lean_object* l_Lean_Syntax_mkNumLit(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_List_forM___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Std_HashMap_instInhabited(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__16;
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
LEAN_EXPORT lean_object* l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Command_expandMacroArg(lean_object*, lean_object*, lean_object*);
static lean_object* _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Elab_Command_instInhabitedScope_default;
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Elab_pp_macroStack;
return x_1;
}
}
LEAN_EXPORT uint8_t l_Lean_Option_get___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4_spec__4(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_ctor_get(x_2, 0);
x_4 = lean_ctor_get(x_2, 1);
x_5 = l_Lean_KVMap_find(x_1, x_3);
if (lean_obj_tag(x_5) == 0)
{
uint8_t x_6; 
x_6 = lean_unbox(x_4);
return x_6;
}
else
{
lean_object* x_7; 
x_7 = lean_ctor_get(x_5, 0);
lean_inc(x_7);
lean_dec_ref(x_5);
if (lean_obj_tag(x_7) == 1)
{
uint8_t x_8; 
x_8 = lean_ctor_get_uint8(x_7, 0);
lean_dec_ref(x_7);
return x_8;
}
else
{
uint8_t x_9; 
lean_dec(x_7);
x_9 = lean_unbox(x_4);
return x_9;
}
}
}
}
static lean_object* _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_box(1);
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("with resulting expansion", 24, 24);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__3;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__4;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
static lean_object* _init_l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4_spec__5___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("while expanding", 15, 15);
return x_1;
}
}
static lean_object* _init_l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4_spec__5___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4_spec__5___closed__0;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4_spec__5___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4_spec__5___closed__1;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4_spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_dec_ref(x_1);
return x_2;
}
else
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; uint8_t x_6; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = !lean_is_exclusive(x_5);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_7 = lean_ctor_get(x_3, 1);
x_8 = lean_ctor_get(x_5, 0);
x_9 = lean_ctor_get(x_5, 1);
lean_dec(x_9);
lean_inc_ref(x_1);
lean_ctor_set_tag(x_5, 7);
lean_ctor_set(x_5, 1, x_1);
lean_ctor_set(x_5, 0, x_2);
x_10 = l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4_spec__5___closed__2;
lean_ctor_set_tag(x_3, 7);
lean_ctor_set(x_3, 1, x_10);
x_11 = l_Lean_MessageData_ofSyntax(x_8);
x_12 = l_Lean_indentD(x_11);
x_13 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_13, 0, x_3);
lean_ctor_set(x_13, 1, x_12);
x_2 = x_13;
x_3 = x_7;
goto _start;
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_15 = lean_ctor_get(x_3, 1);
x_16 = lean_ctor_get(x_5, 0);
lean_inc(x_16);
lean_dec(x_5);
lean_inc_ref(x_1);
x_17 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_17, 0, x_2);
lean_ctor_set(x_17, 1, x_1);
x_18 = l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4_spec__5___closed__2;
lean_ctor_set_tag(x_3, 7);
lean_ctor_set(x_3, 1, x_18);
lean_ctor_set(x_3, 0, x_17);
x_19 = l_Lean_MessageData_ofSyntax(x_16);
x_20 = l_Lean_indentD(x_19);
x_21 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_21, 0, x_3);
lean_ctor_set(x_21, 1, x_20);
x_2 = x_21;
x_3 = x_15;
goto _start;
}
}
else
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_23 = lean_ctor_get(x_3, 0);
x_24 = lean_ctor_get(x_3, 1);
lean_inc(x_24);
lean_inc(x_23);
lean_dec(x_3);
x_25 = lean_ctor_get(x_23, 0);
lean_inc(x_25);
if (lean_is_exclusive(x_23)) {
 lean_ctor_release(x_23, 0);
 lean_ctor_release(x_23, 1);
 x_26 = x_23;
} else {
 lean_dec_ref(x_23);
 x_26 = lean_box(0);
}
lean_inc_ref(x_1);
if (lean_is_scalar(x_26)) {
 x_27 = lean_alloc_ctor(7, 2, 0);
} else {
 x_27 = x_26;
 lean_ctor_set_tag(x_27, 7);
}
lean_ctor_set(x_27, 0, x_2);
lean_ctor_set(x_27, 1, x_1);
x_28 = l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4_spec__5___closed__2;
x_29 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_29, 0, x_27);
lean_ctor_set(x_29, 1, x_28);
x_30 = l_Lean_MessageData_ofSyntax(x_25);
x_31 = l_Lean_indentD(x_30);
x_32 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_32, 0, x_29);
lean_ctor_set(x_32, 1, x_31);
x_2 = x_32;
x_3 = x_24;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_5 = lean_st_ref_get(x_3);
x_6 = lean_ctor_get(x_5, 2);
lean_inc(x_6);
lean_dec(x_5);
x_7 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__0;
x_8 = l_List_head_x21___redArg(x_7, x_6);
lean_dec(x_6);
x_9 = lean_ctor_get(x_8, 1);
lean_inc(x_9);
lean_dec(x_8);
x_10 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__1;
x_11 = l_Lean_Option_get___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4_spec__4(x_9, x_10);
lean_dec(x_9);
if (x_11 == 0)
{
lean_object* x_12; 
lean_dec(x_2);
x_12 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_12, 0, x_1);
return x_12;
}
else
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_13; 
x_13 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_13, 0, x_1);
return x_13;
}
else
{
lean_object* x_14; uint8_t x_15; 
x_14 = lean_ctor_get(x_2, 0);
lean_inc(x_14);
x_15 = !lean_is_exclusive(x_14);
if (x_15 == 0)
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_16 = lean_ctor_get(x_14, 1);
x_17 = lean_ctor_get(x_14, 0);
lean_dec(x_17);
x_18 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__2;
lean_ctor_set_tag(x_14, 7);
lean_ctor_set(x_14, 1, x_18);
lean_ctor_set(x_14, 0, x_1);
x_19 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__5;
x_20 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_20, 0, x_14);
lean_ctor_set(x_20, 1, x_19);
x_21 = l_Lean_MessageData_ofSyntax(x_16);
x_22 = l_Lean_indentD(x_21);
x_23 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_23, 0, x_20);
lean_ctor_set(x_23, 1, x_22);
x_24 = l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4_spec__5(x_18, x_23, x_2);
x_25 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_25, 0, x_24);
return x_25;
}
else
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; 
x_26 = lean_ctor_get(x_14, 1);
lean_inc(x_26);
lean_dec(x_14);
x_27 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__2;
x_28 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_28, 0, x_1);
lean_ctor_set(x_28, 1, x_27);
x_29 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__5;
x_30 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_30, 0, x_28);
lean_ctor_set(x_30, 1, x_29);
x_31 = l_Lean_MessageData_ofSyntax(x_26);
x_32 = l_Lean_indentD(x_31);
x_33 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_33, 0, x_30);
lean_ctor_set(x_33, 1, x_32);
x_34 = l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4_spec__5(x_27, x_33, x_2);
x_35 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_35, 0, x_34);
return x_35;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg(x_1, x_2, x_4);
return x_6;
}
}
static lean_object* _init_l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Elab_unsupportedSyntaxExceptionId;
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg___closed__0;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg() {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg___closed__1;
x_3 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_3, 0, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
return x_5;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0));
return x_1;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__0;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__1;
x_2 = lean_unsigned_to_nat(0u);
x_3 = lean_alloc_ctor(0, 9, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_2);
lean_ctor_set(x_3, 2, x_2);
lean_ctor_set(x_3, 3, x_1);
lean_ctor_set(x_3, 4, x_1);
lean_ctor_set(x_3, 5, x_1);
lean_ctor_set(x_3, 6, x_1);
lean_ctor_set(x_3, 7, x_1);
lean_ctor_set(x_3, 8, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(32u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__3;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__5() {
_start:
{
size_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = 5;
x_2 = lean_unsigned_to_nat(0u);
x_3 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__3;
x_4 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__4;
x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1);
lean_ctor_set(x_5, 0, x_4);
lean_ctor_set(x_5, 1, x_3);
lean_ctor_set(x_5, 2, x_2);
lean_ctor_set(x_5, 3, x_2);
lean_ctor_set_usize(x_5, 4, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = lean_box(1);
x_2 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__5;
x_3 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__1;
x_4 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_4 = lean_st_ref_get(x_2);
x_5 = lean_ctor_get(x_4, 0);
lean_inc_ref(x_5);
lean_dec(x_4);
x_6 = lean_st_ref_get(x_2);
x_7 = lean_ctor_get(x_6, 2);
lean_inc(x_7);
lean_dec(x_6);
x_8 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__0;
x_9 = l_List_head_x21___redArg(x_8, x_7);
lean_dec(x_7);
x_10 = lean_ctor_get(x_9, 1);
lean_inc(x_10);
lean_dec(x_9);
x_11 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__2;
x_12 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__6;
x_13 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_13, 0, x_5);
lean_ctor_set(x_13, 1, x_11);
lean_ctor_set(x_13, 2, x_12);
lean_ctor_set(x_13, 3, x_10);
x_14 = lean_alloc_ctor(3, 2, 0);
lean_ctor_set(x_14, 0, x_13);
lean_ctor_set(x_14, 1, x_1);
x_15 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_15, 0, x_14);
return x_15;
}
}
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg(x_1, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_getMainModule___at___00Lean_Elab_Command_elabElabRulesAux_spec__1___redArg(lean_object* x_1) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_3 = lean_st_ref_get(x_1);
x_4 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_4);
lean_dec(x_3);
x_5 = l_Lean_Environment_header(x_4);
lean_dec_ref(x_4);
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
lean_dec_ref(x_5);
x_7 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_7, 0, x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_getMainModule___at___00Lean_Elab_Command_elabElabRulesAux_spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_getMainModule___at___00Lean_Elab_Command_elabElabRulesAux_spec__1___redArg(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_mkIdentFromRef___at___00Lean_Elab_Command_elabElabRulesAux_spec__0___redArg(lean_object* x_1, uint8_t x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Elab_Command_getRef___redArg(x_3);
if (lean_obj_tag(x_5) == 0)
{
uint8_t x_6; 
x_6 = !lean_is_exclusive(x_5);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; 
x_7 = lean_ctor_get(x_5, 0);
x_8 = l_Lean_mkIdentFrom(x_7, x_1, x_2);
lean_dec(x_7);
lean_ctor_set(x_5, 0, x_8);
return x_5;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_9 = lean_ctor_get(x_5, 0);
lean_inc(x_9);
lean_dec(x_5);
x_10 = l_Lean_mkIdentFrom(x_9, x_1, x_2);
lean_dec(x_9);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
uint8_t x_12; 
lean_dec(x_1);
x_12 = !lean_is_exclusive(x_5);
if (x_12 == 0)
{
return x_5;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_5, 0);
lean_inc(x_13);
lean_dec(x_5);
x_14 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_mkIdentFromRef___at___00Lean_Elab_Command_elabElabRulesAux_spec__0(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_mkIdentFromRef___at___00Lean_Elab_Command_elabElabRulesAux_spec__0___redArg(x_1, x_2, x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Elab_Command_getRef___redArg(x_2);
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
lean_dec_ref(x_5);
x_7 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg(x_1, x_3);
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
lean_dec_ref(x_7);
x_9 = lean_ctor_get(x_2, 4);
lean_inc(x_9);
lean_dec_ref(x_2);
lean_inc(x_9);
x_10 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg(x_8, x_9, x_3);
x_11 = !lean_is_exclusive(x_10);
if (x_11 == 0)
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_12 = lean_ctor_get(x_10, 0);
x_13 = l_Lean_Elab_getBetterRef(x_6, x_9);
lean_dec(x_6);
x_14 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_14, 0, x_13);
lean_ctor_set(x_14, 1, x_12);
lean_ctor_set_tag(x_10, 1);
lean_ctor_set(x_10, 0, x_14);
return x_10;
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_15 = lean_ctor_get(x_10, 0);
lean_inc(x_15);
lean_dec(x_10);
x_16 = l_Lean_Elab_getBetterRef(x_6, x_9);
lean_dec(x_6);
x_17 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_17, 0, x_16);
lean_ctor_set(x_17, 1, x_15);
x_18 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_18, 0, x_17);
return x_18;
}
}
else
{
uint8_t x_19; 
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_19 = !lean_is_exclusive(x_5);
if (x_19 == 0)
{
return x_5;
}
else
{
lean_object* x_20; lean_object* x_21; 
x_20 = lean_ctor_get(x_5, 0);
lean_inc(x_20);
lean_dec(x_5);
x_21 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_21, 0, x_20);
return x_21;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3___redArg(x_2, x_3, x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_Elab_Command_getRef___redArg(x_3);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_7; uint8_t x_8; 
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
lean_dec_ref(x_6);
x_8 = !lean_is_exclusive(x_3);
if (x_8 == 0)
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_9 = lean_ctor_get(x_3, 7);
lean_dec(x_9);
x_10 = l_Lean_replaceRef(x_1, x_7);
lean_dec(x_7);
lean_ctor_set(x_3, 7, x_10);
x_11 = l_Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3___redArg(x_2, x_3, x_4);
return x_11;
}
else
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
x_12 = lean_ctor_get(x_3, 0);
x_13 = lean_ctor_get(x_3, 1);
x_14 = lean_ctor_get(x_3, 2);
x_15 = lean_ctor_get(x_3, 3);
x_16 = lean_ctor_get(x_3, 4);
x_17 = lean_ctor_get(x_3, 5);
x_18 = lean_ctor_get(x_3, 6);
x_19 = lean_ctor_get(x_3, 8);
x_20 = lean_ctor_get(x_3, 9);
x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*10);
lean_inc(x_20);
lean_inc(x_19);
lean_inc(x_18);
lean_inc(x_17);
lean_inc(x_16);
lean_inc(x_15);
lean_inc(x_14);
lean_inc(x_13);
lean_inc(x_12);
lean_dec(x_3);
x_22 = l_Lean_replaceRef(x_1, x_7);
lean_dec(x_7);
x_23 = lean_alloc_ctor(0, 10, 1);
lean_ctor_set(x_23, 0, x_12);
lean_ctor_set(x_23, 1, x_13);
lean_ctor_set(x_23, 2, x_14);
lean_ctor_set(x_23, 3, x_15);
lean_ctor_set(x_23, 4, x_16);
lean_ctor_set(x_23, 5, x_17);
lean_ctor_set(x_23, 6, x_18);
lean_ctor_set(x_23, 7, x_22);
lean_ctor_set(x_23, 8, x_19);
lean_ctor_set(x_23, 9, x_20);
lean_ctor_set_uint8(x_23, sizeof(void*)*10, x_21);
x_24 = l_Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3___redArg(x_2, x_23, x_4);
return x_24;
}
}
else
{
uint8_t x_25; 
lean_dec_ref(x_3);
lean_dec_ref(x_2);
x_25 = !lean_is_exclusive(x_6);
if (x_25 == 0)
{
return x_6;
}
else
{
lean_object* x_26; lean_object* x_27; 
x_26 = lean_ctor_get(x_6, 0);
lean_inc(x_26);
lean_dec(x_6);
x_27 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_27, 0, x_26);
return x_27;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3___redArg(x_2, x_3, x_4, x_5);
return x_7;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Command_elabElabRulesAux_spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7) {
_start:
{
uint8_t x_8; 
x_8 = lean_usize_dec_lt(x_6, x_5);
if (x_8 == 0)
{
lean_dec(x_1);
lean_inc_ref(x_7);
return x_7;
}
else
{
lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_9 = lean_array_uget(x_4, x_6);
lean_inc(x_9);
x_10 = l_Lean_Syntax_getKind(x_9);
lean_inc(x_1);
x_11 = l_Lean_Elab_Command_checkRuleKind(x_10, x_1);
lean_dec(x_10);
if (x_11 == 0)
{
size_t x_12; size_t x_13; 
lean_dec(x_9);
x_12 = 1;
x_13 = lean_usize_add(x_6, x_12);
{
size_t _tmp_5 = x_13;
lean_object* _tmp_6 = x_2;
x_6 = _tmp_5;
x_7 = _tmp_6;
}
goto _start;
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
lean_dec(x_1);
x_15 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_15, 0, x_9);
x_16 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_16, 0, x_15);
x_17 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_17, 0, x_16);
lean_ctor_set(x_17, 1, x_3);
return x_17;
}
}
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid elab_rules alternative, expected syntax node kind `", 59, 59);
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__0;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("`", 1, 1);
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__2;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean", 4, 4);
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Parser", 6, 6);
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Term", 4, 4);
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("matchAlt", 8, 8);
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__7;
x_2 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__6;
x_3 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__5;
x_4 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__4;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("|", 1, 1);
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("null", 4, 4);
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__10;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__12() {
_start:
{
lean_object* x_1; 
x_1 = l_Array_mkArray0(lean_box(0));
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__13() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("=>", 2, 2);
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__14() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("choice", 6, 6);
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__14;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__16() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid elab_rules alternative, unexpected syntax node kind `", 61, 61);
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__16;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__18() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = lean_box(0);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
uint8_t x_8; 
x_8 = lean_usize_dec_lt(x_3, x_2);
if (x_8 == 0)
{
lean_object* x_9; 
lean_dec_ref(x_5);
lean_dec(x_1);
x_9 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_9, 0, x_4);
return x_9;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_20; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_35; uint8_t x_36; 
x_10 = lean_array_uget(x_4, x_3);
x_11 = lean_unsigned_to_nat(0u);
x_12 = lean_array_uset(x_4, x_3, x_11);
x_35 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__8;
lean_inc(x_10);
x_36 = l_Lean_Syntax_isOfKind(x_10, x_35);
if (x_36 == 0)
{
lean_object* x_37; 
lean_dec_ref(x_12);
lean_dec(x_10);
lean_dec_ref(x_5);
lean_dec(x_1);
x_37 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
x_20 = x_37;
goto block_24;
}
else
{
lean_object* x_38; lean_object* x_39; uint8_t x_40; 
x_38 = lean_unsigned_to_nat(1u);
x_39 = l_Lean_Syntax_getArg(x_10, x_38);
lean_inc(x_39);
x_40 = l_Lean_Syntax_matchesNull(x_39, x_38);
if (x_40 == 0)
{
lean_object* x_41; 
lean_dec(x_39);
lean_dec_ref(x_12);
lean_dec(x_10);
lean_dec_ref(x_5);
lean_dec(x_1);
x_41 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
x_20 = x_41;
goto block_24;
}
else
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_100; 
x_42 = l_Lean_Syntax_getArg(x_39, x_11);
lean_dec(x_39);
x_43 = lean_unsigned_to_nat(3u);
x_44 = l_Lean_Syntax_getArg(x_10, x_43);
x_59 = l_Lean_Syntax_getArgs(x_42);
lean_dec(x_42);
x_60 = lean_box(0);
x_61 = lean_array_get(x_60, x_59, x_11);
x_100 = l_Lean_Syntax_isQuot(x_61);
if (x_100 == 0)
{
if (x_40 == 0)
{
lean_inc_ref(x_5);
x_62 = x_5;
x_63 = x_6;
x_64 = lean_box(0);
goto block_99;
}
else
{
lean_object* x_101; uint8_t x_102; 
lean_dec(x_61);
lean_dec_ref(x_59);
lean_dec(x_44);
lean_dec_ref(x_12);
lean_dec(x_10);
lean_dec_ref(x_5);
lean_dec(x_1);
x_101 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
x_102 = !lean_is_exclusive(x_101);
if (x_102 == 0)
{
return x_101;
}
else
{
lean_object* x_103; lean_object* x_104; 
x_103 = lean_ctor_get(x_101, 0);
lean_inc(x_103);
lean_dec(x_101);
x_104 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_104, 0, x_103);
return x_104;
}
}
}
else
{
lean_inc_ref(x_5);
x_62 = x_5;
x_63 = x_6;
x_64 = lean_box(0);
goto block_99;
}
block_58:
{
lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; 
x_48 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__9;
lean_inc(x_46);
x_49 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_49, 0, x_46);
lean_ctor_set(x_49, 1, x_48);
x_50 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__11;
x_51 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__12;
x_52 = l_Array_append___redArg(x_51, x_45);
lean_dec_ref(x_45);
lean_inc(x_46);
x_53 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_53, 0, x_46);
lean_ctor_set(x_53, 1, x_50);
lean_ctor_set(x_53, 2, x_52);
lean_inc(x_46);
x_54 = l_Lean_Syntax_node1(x_46, x_50, x_53);
x_55 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__13;
lean_inc(x_46);
x_56 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_56, 0, x_46);
lean_ctor_set(x_56, 1, x_55);
x_57 = l_Lean_Syntax_node4(x_46, x_35, x_49, x_54, x_56, x_44);
x_13 = x_57;
x_14 = lean_box(0);
goto block_19;
}
block_99:
{
lean_object* x_65; lean_object* x_66; uint8_t x_67; 
lean_inc(x_61);
x_65 = l_Lean_Syntax_getQuotContent(x_61);
lean_inc(x_65);
x_66 = l_Lean_Syntax_getKind(x_65);
lean_inc(x_1);
x_67 = l_Lean_Elab_Command_checkRuleKind(x_66, x_1);
if (x_67 == 0)
{
lean_object* x_68; uint8_t x_69; 
x_68 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__15;
x_69 = lean_name_eq(x_66, x_68);
if (x_69 == 0)
{
lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; 
lean_dec(x_65);
lean_dec(x_61);
lean_dec_ref(x_59);
lean_dec(x_44);
lean_dec_ref(x_12);
lean_dec_ref(x_5);
lean_dec(x_1);
x_70 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__17;
x_71 = l_Lean_MessageData_ofName(x_66);
x_72 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_72, 0, x_70);
lean_ctor_set(x_72, 1, x_71);
x_73 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__3;
x_74 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_74, 0, x_72);
lean_ctor_set(x_74, 1, x_73);
x_75 = l_Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3___redArg(x_10, x_74, x_62, x_63);
lean_dec(x_10);
x_20 = x_75;
goto block_24;
}
else
{
lean_object* x_76; lean_object* x_77; lean_object* x_78; size_t x_79; size_t x_80; lean_object* x_81; lean_object* x_82; 
lean_dec(x_66);
x_76 = l_Lean_Syntax_getArgs(x_65);
lean_dec(x_65);
x_77 = lean_box(0);
x_78 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__18;
x_79 = lean_array_size(x_76);
x_80 = 0;
lean_inc(x_1);
x_81 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Command_elabElabRulesAux_spec__9(x_1, x_78, x_77, x_76, x_79, x_80, x_78);
lean_dec_ref(x_76);
x_82 = lean_ctor_get(x_81, 0);
lean_inc(x_82);
lean_dec_ref(x_81);
if (lean_obj_tag(x_82) == 0)
{
lean_dec(x_61);
lean_dec_ref(x_59);
lean_dec(x_44);
lean_dec_ref(x_12);
lean_dec_ref(x_5);
x_25 = x_62;
x_26 = x_63;
x_27 = lean_box(0);
goto block_34;
}
else
{
lean_object* x_83; 
x_83 = lean_ctor_get(x_82, 0);
lean_inc(x_83);
lean_dec_ref(x_82);
if (lean_obj_tag(x_83) == 0)
{
lean_dec(x_61);
lean_dec_ref(x_59);
lean_dec(x_44);
lean_dec_ref(x_12);
lean_dec_ref(x_5);
x_25 = x_62;
x_26 = x_63;
x_27 = lean_box(0);
goto block_34;
}
else
{
lean_object* x_84; lean_object* x_85; 
lean_dec(x_10);
x_84 = lean_ctor_get(x_83, 0);
lean_inc(x_84);
lean_dec_ref(x_83);
x_85 = l_Lean_Elab_Command_getRef___redArg(x_62);
if (lean_obj_tag(x_85) == 0)
{
lean_object* x_86; lean_object* x_87; 
x_86 = lean_ctor_get(x_85, 0);
lean_inc(x_86);
lean_dec_ref(x_85);
x_87 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_62);
if (lean_obj_tag(x_87) == 0)
{
lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; 
lean_dec_ref(x_87);
x_88 = lean_ctor_get(x_62, 5);
lean_inc(x_88);
lean_dec_ref(x_62);
x_89 = l_Lean_Syntax_setArg(x_61, x_38, x_84);
x_90 = lean_array_set(x_59, x_11, x_89);
x_91 = l_Lean_SourceInfo_fromRef(x_86, x_67);
lean_dec(x_86);
if (lean_obj_tag(x_88) == 0)
{
lean_object* x_92; 
x_92 = l_Lean_getMainModule___at___00Lean_Elab_Command_elabElabRulesAux_spec__1___redArg(x_63);
lean_dec_ref(x_92);
x_45 = x_90;
x_46 = x_91;
x_47 = lean_box(0);
goto block_58;
}
else
{
lean_dec_ref(x_88);
x_45 = x_90;
x_46 = x_91;
x_47 = lean_box(0);
goto block_58;
}
}
else
{
uint8_t x_93; 
lean_dec(x_86);
lean_dec(x_84);
lean_dec_ref(x_62);
lean_dec(x_61);
lean_dec_ref(x_59);
lean_dec(x_44);
lean_dec_ref(x_12);
lean_dec_ref(x_5);
lean_dec(x_1);
x_93 = !lean_is_exclusive(x_87);
if (x_93 == 0)
{
return x_87;
}
else
{
lean_object* x_94; lean_object* x_95; 
x_94 = lean_ctor_get(x_87, 0);
lean_inc(x_94);
lean_dec(x_87);
x_95 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_95, 0, x_94);
return x_95;
}
}
}
else
{
uint8_t x_96; 
lean_dec(x_84);
lean_dec_ref(x_62);
lean_dec(x_61);
lean_dec_ref(x_59);
lean_dec(x_44);
lean_dec_ref(x_12);
lean_dec_ref(x_5);
lean_dec(x_1);
x_96 = !lean_is_exclusive(x_85);
if (x_96 == 0)
{
return x_85;
}
else
{
lean_object* x_97; lean_object* x_98; 
x_97 = lean_ctor_get(x_85, 0);
lean_inc(x_97);
lean_dec(x_85);
x_98 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_98, 0, x_97);
return x_98;
}
}
}
}
}
}
else
{
lean_dec(x_66);
lean_dec(x_65);
lean_dec_ref(x_62);
lean_dec(x_61);
lean_dec_ref(x_59);
lean_dec(x_44);
x_13 = x_10;
x_14 = lean_box(0);
goto block_19;
}
}
}
}
block_19:
{
size_t x_15; size_t x_16; lean_object* x_17; 
x_15 = 1;
x_16 = lean_usize_add(x_3, x_15);
x_17 = lean_array_uset(x_12, x_3, x_13);
x_3 = x_16;
x_4 = x_17;
goto _start;
}
block_24:
{
uint8_t x_21; 
x_21 = !lean_is_exclusive(x_20);
if (x_21 == 0)
{
return x_20;
}
else
{
lean_object* x_22; lean_object* x_23; 
x_22 = lean_ctor_get(x_20, 0);
lean_inc(x_22);
lean_dec(x_20);
x_23 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_23, 0, x_22);
return x_23;
}
}
block_34:
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; 
x_28 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__1;
x_29 = l_Lean_MessageData_ofName(x_1);
x_30 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_30, 0, x_28);
lean_ctor_set(x_30, 1, x_29);
x_31 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__3;
x_32 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_32, 0, x_30);
lean_ctor_set(x_32, 1, x_31);
x_33 = l_Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3___redArg(x_10, x_32, x_25, x_26);
lean_dec(x_10);
x_20 = x_33;
goto block_24;
}
}
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("attrInstance", 12, 12);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__0;
x_2 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__6;
x_3 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__5;
x_4 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__4;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Attr", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("simple", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__3;
x_2 = l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__2;
x_3 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__5;
x_4 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__4;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(1u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElabRulesAux___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
uint8_t x_8; lean_object* x_9; 
x_8 = 0;
x_9 = l_Lean_mkIdentFromRef___at___00Lean_Elab_Command_elabElabRulesAux_spec__0___redArg(x_1, x_8, x_5);
if (lean_obj_tag(x_9) == 0)
{
lean_object* x_10; lean_object* x_11; 
x_10 = lean_ctor_get(x_9, 0);
lean_inc(x_10);
lean_dec_ref(x_9);
x_11 = l_Lean_Elab_Command_getRef___redArg(x_5);
if (lean_obj_tag(x_11) == 0)
{
lean_object* x_12; lean_object* x_13; 
x_12 = lean_ctor_get(x_11, 0);
lean_inc(x_12);
lean_dec_ref(x_11);
x_13 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_5);
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
if (lean_is_exclusive(x_13)) {
 lean_ctor_release(x_13, 0);
 x_14 = x_13;
} else {
 lean_dec_ref(x_13);
 x_14 = lean_box(0);
}
x_15 = lean_ctor_get(x_5, 5);
x_16 = l_Lean_SourceInfo_fromRef(x_12, x_8);
lean_dec(x_12);
if (lean_obj_tag(x_15) == 0)
{
lean_object* x_33; 
x_33 = l_Lean_getMainModule___at___00Lean_Elab_Command_elabElabRulesAux_spec__1___redArg(x_6);
lean_dec_ref(x_33);
x_17 = lean_box(0);
goto block_32;
}
else
{
x_17 = lean_box(0);
goto block_32;
}
block_32:
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
x_18 = l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__1;
x_19 = l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__4;
x_20 = lean_mk_syntax_ident(x_4);
x_21 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__11;
lean_inc(x_16);
x_22 = l_Lean_Syntax_node1(x_16, x_21, x_10);
lean_inc(x_16);
x_23 = l_Lean_Syntax_node2(x_16, x_19, x_20, x_22);
x_24 = l_Lean_Syntax_node2(x_16, x_18, x_2, x_23);
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_25 = l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__5;
x_26 = lean_array_push(x_25, x_24);
if (lean_is_scalar(x_14)) {
 x_27 = lean_alloc_ctor(0, 1, 0);
} else {
 x_27 = x_14;
}
lean_ctor_set(x_27, 0, x_26);
return x_27;
}
else
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_28 = lean_ctor_get(x_3, 0);
x_29 = l_Lean_Syntax_TSepArray_getElems___redArg(x_28);
x_30 = lean_array_push(x_29, x_24);
if (lean_is_scalar(x_14)) {
 x_31 = lean_alloc_ctor(0, 1, 0);
} else {
 x_31 = x_14;
}
lean_ctor_set(x_31, 0, x_30);
return x_31;
}
}
}
else
{
uint8_t x_34; 
lean_dec(x_12);
lean_dec(x_10);
lean_dec(x_4);
lean_dec(x_2);
x_34 = !lean_is_exclusive(x_13);
if (x_34 == 0)
{
return x_13;
}
else
{
lean_object* x_35; lean_object* x_36; 
x_35 = lean_ctor_get(x_13, 0);
lean_inc(x_35);
lean_dec(x_13);
x_36 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_36, 0, x_35);
return x_36;
}
}
}
else
{
uint8_t x_37; 
lean_dec(x_10);
lean_dec(x_4);
lean_dec(x_2);
x_37 = !lean_is_exclusive(x_11);
if (x_37 == 0)
{
return x_11;
}
else
{
lean_object* x_38; lean_object* x_39; 
x_38 = lean_ctor_get(x_11, 0);
lean_inc(x_38);
lean_dec(x_11);
x_39 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_39, 0, x_38);
return x_39;
}
}
}
else
{
uint8_t x_40; 
lean_dec(x_4);
lean_dec(x_2);
x_40 = !lean_is_exclusive(x_9);
if (x_40 == 0)
{
return x_9;
}
else
{
lean_object* x_41; lean_object* x_42; 
x_41 = lean_ctor_get(x_9, 0);
lean_inc(x_41);
lean_dec(x_9);
x_42 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_42, 0, x_41);
return x_42;
}
}
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("attributes", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("@[", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(",", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("]", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elabRules", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabElabRulesAux___closed__4;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabElabRulesAux___closed__4;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(":", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean.Elab.Term.TermElab", 23, 23);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabElabRulesAux___closed__8;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("TermElab", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__11() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(":=", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__12() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("fun", 3, 3);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__13() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("basicFun", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__14() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("stx", 3, 3);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabElabRulesAux___closed__14;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabElabRulesAux___closed__14;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__17() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("hole", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__18() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("_", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__19() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("match", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__20() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("matchDiscr", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__21() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("with", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__22() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("matchAlts", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__23() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("noErrorIfUnused", 15, 15);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__24() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("no_error_if_unused%", 19, 19);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__25() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("throwUnsupportedSyntax", 22, 22);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__26() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabElabRulesAux___closed__25;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__27() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabElabRulesAux___closed__25;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__28() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(9u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__29() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Elab", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__30() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Command", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__31() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("aux_def", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__32() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabElabRulesAux___closed__31;
x_2 = l_Lean_Elab_Command_elabElabRulesAux___closed__30;
x_3 = l_Lean_Elab_Command_elabElabRulesAux___closed__29;
x_4 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__4;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__33() {
_start:
{
lean_object* x_1; 
x_1 = l_Array_empty(lean_box(0));
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__34() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean.Elab.Command.CommandElab", 29, 29);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__35() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabElabRulesAux___closed__34;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__36() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("CommandElab", 11, 11);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__37() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean.Elab.Do.DoElab", 19, 19);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__38() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabElabRulesAux___closed__37;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__39() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Do", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__40() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("DoElab", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__41() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("cont", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__42() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabElabRulesAux___closed__41;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__43() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabElabRulesAux___closed__41;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__44() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean.Elab.Tactic.Tactic", 23, 23);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__45() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabElabRulesAux___closed__44;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__46() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Tactic", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__47() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("expectedType\?", 13, 13);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__48() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabElabRulesAux___closed__47;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__49() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabElabRulesAux___closed__47;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__50() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("app", 3, 3);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__51() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean.Elab.Term.withExpectedType", 31, 31);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__52() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabElabRulesAux___closed__51;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__53() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("withExpectedType", 16, 16);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__54() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("term", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__55() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabElabRulesAux___closed__54;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__56() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("doElem", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__57() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabElabRulesAux___closed__56;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__58() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("syntax category `", 17, 17);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__59() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabElabRulesAux___closed__58;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__60() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("` does not support expected type specification", 46, 46);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__61() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabElabRulesAux___closed__60;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__62() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("do_elab", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__63() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabElabRulesAux___closed__62;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__64() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("term_elab", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__65() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabElabRulesAux___closed__64;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__66() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("command", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__67() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabElabRulesAux___closed__66;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__68() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("tactic", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__69() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabElabRulesAux___closed__68;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__70() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("conv", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__71() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabElabRulesAux___closed__70;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__72() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("unsupported syntax category `", 29, 29);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__73() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabElabRulesAux___closed__72;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__74() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("command_elab", 12, 12);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__75() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabElabRulesAux___closed__74;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__76() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid elab_rules command, specify category using `elab_rules : <cat> ...`", 75, 75);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRulesAux___closed__77() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabElabRulesAux___closed__76;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElabRulesAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
size_t x_11; size_t x_12; lean_object* x_13; 
x_11 = lean_array_size(x_7);
x_12 = 0;
lean_inc_ref(x_8);
lean_inc(x_4);
x_13 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10(x_4, x_11, x_12, x_7, x_8, x_9);
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_789; lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_806; lean_object* x_807; lean_object* x_808; lean_object* x_809; uint8_t x_810; lean_object* x_811; lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; 
x_14 = lean_ctor_get(x_13, 0);
lean_inc(x_14);
if (lean_is_exclusive(x_13)) {
 lean_ctor_release(x_13, 0);
 x_15 = x_13;
} else {
 lean_dec_ref(x_13);
 x_15 = lean_box(0);
}
if (lean_obj_tag(x_5) == 1)
{
lean_object* x_955; lean_object* x_956; 
x_955 = lean_ctor_get(x_5, 0);
x_956 = l_Lean_TSyntax_getId(x_955);
x_830 = x_956;
x_831 = x_8;
x_832 = x_9;
x_833 = lean_box(0);
goto block_954;
}
else
{
if (lean_obj_tag(x_6) == 1)
{
lean_object* x_957; 
x_957 = l_Lean_Elab_Command_elabElabRulesAux___closed__55;
x_830 = x_957;
x_831 = x_8;
x_832 = x_9;
x_833 = lean_box(0);
goto block_954;
}
else
{
lean_object* x_958; lean_object* x_959; uint8_t x_960; 
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_6);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_958 = l_Lean_Elab_Command_elabElabRulesAux___closed__77;
x_959 = l_Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3___redArg(x_958, x_8, x_9);
x_960 = !lean_is_exclusive(x_959);
if (x_960 == 0)
{
return x_959;
}
else
{
lean_object* x_961; lean_object* x_962; 
x_961 = lean_ctor_get(x_959, 0);
lean_inc(x_961);
lean_dec(x_959);
x_962 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_962, 0, x_961);
return x_962;
}
}
}
block_132:
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; 
lean_inc_ref(x_26);
x_29 = l_Array_append___redArg(x_26, x_28);
lean_dec_ref(x_28);
lean_inc(x_25);
lean_inc(x_20);
x_30 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_30, 0, x_20);
lean_ctor_set(x_30, 1, x_25);
lean_ctor_set(x_30, 2, x_29);
x_31 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__5;
x_32 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__6;
x_33 = l_Lean_Elab_Command_elabElabRulesAux___closed__0;
lean_inc_ref(x_21);
x_34 = l_Lean_Name_mkStr4(x_21, x_31, x_32, x_33);
x_35 = l_Lean_Elab_Command_elabElabRulesAux___closed__1;
lean_inc(x_20);
x_36 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_36, 0, x_20);
lean_ctor_set(x_36, 1, x_35);
x_37 = l_Lean_Elab_Command_elabElabRulesAux___closed__2;
x_38 = l_Lean_Syntax_SepArray_ofElems(x_37, x_22);
lean_dec_ref(x_22);
lean_inc_ref(x_26);
x_39 = l_Array_append___redArg(x_26, x_38);
lean_dec_ref(x_38);
lean_inc(x_25);
lean_inc(x_20);
x_40 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_40, 0, x_20);
lean_ctor_set(x_40, 1, x_25);
lean_ctor_set(x_40, 2, x_39);
x_41 = l_Lean_Elab_Command_elabElabRulesAux___closed__3;
lean_inc(x_20);
x_42 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_42, 0, x_20);
lean_ctor_set(x_42, 1, x_41);
lean_inc(x_20);
x_43 = l_Lean_Syntax_node3(x_20, x_34, x_36, x_40, x_42);
lean_inc(x_25);
lean_inc(x_20);
x_44 = l_Lean_Syntax_node1(x_20, x_25, x_43);
lean_inc(x_20);
x_45 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_45, 0, x_20);
lean_ctor_set(x_45, 1, x_24);
x_46 = l_Lean_Elab_Command_elabElabRulesAux___closed__5;
x_47 = l_Lean_Elab_Command_elabElabRulesAux___closed__6;
lean_inc(x_18);
lean_inc(x_17);
x_48 = l_Lean_addMacroScope(x_17, x_47, x_18);
x_49 = lean_box(0);
lean_inc(x_20);
x_50 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_50, 0, x_20);
lean_ctor_set(x_50, 1, x_46);
lean_ctor_set(x_50, 2, x_48);
lean_ctor_set(x_50, 3, x_49);
x_51 = lean_mk_syntax_ident(x_4);
lean_inc(x_25);
lean_inc(x_20);
x_52 = l_Lean_Syntax_node2(x_20, x_25, x_50, x_51);
x_53 = l_Lean_Elab_Command_elabElabRulesAux___closed__7;
lean_inc(x_20);
x_54 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_54, 0, x_20);
lean_ctor_set(x_54, 1, x_53);
x_55 = l_Lean_Elab_Command_elabElabRulesAux___closed__9;
x_56 = l_Lean_Elab_Command_elabElabRulesAux___closed__10;
lean_inc_ref(x_23);
lean_inc_ref(x_21);
x_57 = l_Lean_Name_mkStr4(x_21, x_23, x_32, x_56);
lean_inc(x_18);
lean_inc(x_57);
lean_inc(x_17);
x_58 = l_Lean_addMacroScope(x_17, x_57, x_18);
x_59 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_59, 0, x_57);
lean_ctor_set(x_59, 1, x_49);
x_60 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_60, 0, x_59);
lean_ctor_set(x_60, 1, x_49);
lean_inc(x_20);
x_61 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_61, 0, x_20);
lean_ctor_set(x_61, 1, x_55);
lean_ctor_set(x_61, 2, x_58);
lean_ctor_set(x_61, 3, x_60);
x_62 = l_Lean_Elab_Command_elabElabRulesAux___closed__11;
lean_inc(x_20);
x_63 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_63, 0, x_20);
lean_ctor_set(x_63, 1, x_62);
x_64 = l_Lean_Elab_Command_elabElabRulesAux___closed__12;
lean_inc_ref(x_21);
x_65 = l_Lean_Name_mkStr4(x_21, x_31, x_32, x_64);
lean_inc(x_20);
x_66 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_66, 0, x_20);
lean_ctor_set(x_66, 1, x_64);
x_67 = l_Lean_Elab_Command_elabElabRulesAux___closed__13;
lean_inc_ref(x_21);
x_68 = l_Lean_Name_mkStr4(x_21, x_31, x_32, x_67);
x_69 = l_Lean_Elab_Command_elabElabRulesAux___closed__15;
x_70 = l_Lean_Elab_Command_elabElabRulesAux___closed__16;
lean_inc(x_18);
lean_inc(x_17);
x_71 = l_Lean_addMacroScope(x_17, x_70, x_18);
lean_inc(x_20);
x_72 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_72, 0, x_20);
lean_ctor_set(x_72, 1, x_69);
lean_ctor_set(x_72, 2, x_71);
lean_ctor_set(x_72, 3, x_49);
x_73 = l_Lean_Elab_Command_elabElabRulesAux___closed__17;
lean_inc_ref(x_21);
x_74 = l_Lean_Name_mkStr4(x_21, x_31, x_32, x_73);
x_75 = l_Lean_Elab_Command_elabElabRulesAux___closed__18;
lean_inc(x_20);
x_76 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_76, 0, x_20);
lean_ctor_set(x_76, 1, x_75);
lean_inc(x_20);
x_77 = l_Lean_Syntax_node1(x_20, x_74, x_76);
lean_inc(x_77);
lean_inc_ref(x_72);
lean_inc(x_25);
lean_inc(x_20);
x_78 = l_Lean_Syntax_node2(x_20, x_25, x_72, x_77);
lean_inc_ref(x_26);
lean_inc(x_25);
lean_inc(x_20);
x_79 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_79, 0, x_20);
lean_ctor_set(x_79, 1, x_25);
lean_ctor_set(x_79, 2, x_26);
x_80 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__13;
lean_inc(x_20);
x_81 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_81, 0, x_20);
lean_ctor_set(x_81, 1, x_80);
x_82 = l_Lean_Elab_Command_elabElabRulesAux___closed__19;
lean_inc_ref(x_21);
x_83 = l_Lean_Name_mkStr4(x_21, x_31, x_32, x_82);
lean_inc(x_20);
x_84 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_84, 0, x_20);
lean_ctor_set(x_84, 1, x_82);
x_85 = l_Lean_Elab_Command_elabElabRulesAux___closed__20;
lean_inc_ref(x_21);
x_86 = l_Lean_Name_mkStr4(x_21, x_31, x_32, x_85);
lean_inc_ref(x_79);
lean_inc(x_20);
x_87 = l_Lean_Syntax_node2(x_20, x_86, x_79, x_72);
lean_inc(x_25);
lean_inc(x_20);
x_88 = l_Lean_Syntax_node1(x_20, x_25, x_87);
x_89 = l_Lean_Elab_Command_elabElabRulesAux___closed__21;
lean_inc(x_20);
x_90 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_90, 0, x_20);
lean_ctor_set(x_90, 1, x_89);
x_91 = l_Lean_Elab_Command_elabElabRulesAux___closed__22;
lean_inc_ref(x_21);
x_92 = l_Lean_Name_mkStr4(x_21, x_31, x_32, x_91);
x_93 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__7;
lean_inc_ref(x_21);
x_94 = l_Lean_Name_mkStr4(x_21, x_31, x_32, x_93);
x_95 = l_Array_append___redArg(x_26, x_14);
lean_dec(x_14);
x_96 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__9;
lean_inc(x_20);
x_97 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_97, 0, x_20);
lean_ctor_set(x_97, 1, x_96);
lean_inc(x_25);
lean_inc(x_20);
x_98 = l_Lean_Syntax_node1(x_20, x_25, x_77);
lean_inc(x_25);
lean_inc(x_20);
x_99 = l_Lean_Syntax_node1(x_20, x_25, x_98);
x_100 = l_Lean_Elab_Command_elabElabRulesAux___closed__23;
lean_inc_ref(x_21);
x_101 = l_Lean_Name_mkStr4(x_21, x_31, x_32, x_100);
x_102 = l_Lean_Elab_Command_elabElabRulesAux___closed__24;
lean_inc(x_20);
x_103 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_103, 0, x_20);
lean_ctor_set(x_103, 1, x_102);
x_104 = l_Lean_Elab_Command_elabElabRulesAux___closed__25;
x_105 = l_Lean_Elab_Command_elabElabRulesAux___closed__26;
x_106 = l_Lean_Elab_Command_elabElabRulesAux___closed__27;
x_107 = l_Lean_addMacroScope(x_17, x_106, x_18);
x_108 = l_Lean_Name_mkStr3(x_21, x_23, x_104);
x_109 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_109, 0, x_108);
lean_ctor_set(x_109, 1, x_49);
x_110 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_110, 0, x_109);
lean_ctor_set(x_110, 1, x_49);
lean_inc(x_20);
x_111 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_111, 0, x_20);
lean_ctor_set(x_111, 1, x_105);
lean_ctor_set(x_111, 2, x_107);
lean_ctor_set(x_111, 3, x_110);
lean_inc(x_20);
x_112 = l_Lean_Syntax_node2(x_20, x_101, x_103, x_111);
lean_inc_ref(x_81);
lean_inc(x_20);
x_113 = l_Lean_Syntax_node4(x_20, x_94, x_97, x_99, x_81, x_112);
x_114 = lean_array_push(x_95, x_113);
lean_inc(x_20);
x_115 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_115, 0, x_20);
lean_ctor_set(x_115, 1, x_25);
lean_ctor_set(x_115, 2, x_114);
lean_inc(x_20);
x_116 = l_Lean_Syntax_node1(x_20, x_92, x_115);
lean_inc_ref_n(x_79, 2);
lean_inc(x_20);
x_117 = l_Lean_Syntax_node6(x_20, x_83, x_84, x_79, x_79, x_88, x_90, x_116);
lean_inc(x_20);
x_118 = l_Lean_Syntax_node4(x_20, x_68, x_78, x_79, x_81, x_117);
lean_inc(x_20);
x_119 = l_Lean_Syntax_node2(x_20, x_65, x_66, x_118);
x_120 = l_Lean_Elab_Command_elabElabRulesAux___closed__28;
x_121 = lean_array_push(x_120, x_30);
x_122 = lean_array_push(x_121, x_44);
x_123 = lean_array_push(x_122, x_19);
x_124 = lean_array_push(x_123, x_45);
x_125 = lean_array_push(x_124, x_52);
x_126 = lean_array_push(x_125, x_54);
x_127 = lean_array_push(x_126, x_61);
x_128 = lean_array_push(x_127, x_63);
x_129 = lean_array_push(x_128, x_119);
x_130 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_130, 0, x_20);
lean_ctor_set(x_130, 1, x_27);
lean_ctor_set(x_130, 2, x_129);
if (lean_is_scalar(x_15)) {
 x_131 = lean_alloc_ctor(0, 1, 0);
} else {
 x_131 = x_15;
}
lean_ctor_set(x_131, 0, x_130);
return x_131;
}
block_148:
{
lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; 
x_139 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__4;
x_140 = l_Lean_Elab_Command_elabElabRulesAux___closed__29;
x_141 = l_Lean_Elab_Command_elabElabRulesAux___closed__31;
x_142 = l_Lean_Elab_Command_elabElabRulesAux___closed__32;
x_143 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__11;
x_144 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__12;
if (lean_obj_tag(x_1) == 1)
{
lean_object* x_145; lean_object* x_146; 
x_145 = lean_ctor_get(x_1, 0);
lean_inc(x_145);
lean_dec_ref(x_1);
x_146 = l_Array_mkArray1___redArg(x_145);
x_16 = lean_box(0);
x_17 = x_137;
x_18 = x_133;
x_19 = x_134;
x_20 = x_135;
x_21 = x_139;
x_22 = x_136;
x_23 = x_140;
x_24 = x_141;
x_25 = x_143;
x_26 = x_144;
x_27 = x_142;
x_28 = x_146;
goto block_132;
}
else
{
lean_object* x_147; 
lean_dec(x_1);
x_147 = l_Lean_Elab_Command_elabElabRulesAux___closed__33;
x_16 = lean_box(0);
x_17 = x_137;
x_18 = x_133;
x_19 = x_134;
x_20 = x_135;
x_21 = x_139;
x_22 = x_136;
x_23 = x_140;
x_24 = x_141;
x_25 = x_143;
x_26 = x_144;
x_27 = x_142;
x_28 = x_147;
goto block_132;
}
}
block_247:
{
lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; 
lean_inc_ref(x_156);
x_163 = l_Array_append___redArg(x_156, x_162);
lean_dec_ref(x_162);
lean_inc(x_152);
lean_inc(x_157);
x_164 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_164, 0, x_157);
lean_ctor_set(x_164, 1, x_152);
lean_ctor_set(x_164, 2, x_163);
x_165 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__5;
x_166 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__6;
x_167 = l_Lean_Elab_Command_elabElabRulesAux___closed__0;
lean_inc_ref(x_150);
x_168 = l_Lean_Name_mkStr4(x_150, x_165, x_166, x_167);
x_169 = l_Lean_Elab_Command_elabElabRulesAux___closed__1;
lean_inc(x_157);
x_170 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_170, 0, x_157);
lean_ctor_set(x_170, 1, x_169);
x_171 = l_Lean_Elab_Command_elabElabRulesAux___closed__2;
x_172 = l_Lean_Syntax_SepArray_ofElems(x_171, x_161);
lean_dec_ref(x_161);
lean_inc_ref(x_156);
x_173 = l_Array_append___redArg(x_156, x_172);
lean_dec_ref(x_172);
lean_inc(x_152);
lean_inc(x_157);
x_174 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_174, 0, x_157);
lean_ctor_set(x_174, 1, x_152);
lean_ctor_set(x_174, 2, x_173);
x_175 = l_Lean_Elab_Command_elabElabRulesAux___closed__3;
lean_inc(x_157);
x_176 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_176, 0, x_157);
lean_ctor_set(x_176, 1, x_175);
lean_inc(x_157);
x_177 = l_Lean_Syntax_node3(x_157, x_168, x_170, x_174, x_176);
lean_inc(x_152);
lean_inc(x_157);
x_178 = l_Lean_Syntax_node1(x_157, x_152, x_177);
lean_inc(x_157);
x_179 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_179, 0, x_157);
lean_ctor_set(x_179, 1, x_159);
x_180 = l_Lean_Elab_Command_elabElabRulesAux___closed__5;
x_181 = l_Lean_Elab_Command_elabElabRulesAux___closed__6;
lean_inc(x_149);
lean_inc(x_158);
x_182 = l_Lean_addMacroScope(x_158, x_181, x_149);
x_183 = lean_box(0);
lean_inc(x_157);
x_184 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_184, 0, x_157);
lean_ctor_set(x_184, 1, x_180);
lean_ctor_set(x_184, 2, x_182);
lean_ctor_set(x_184, 3, x_183);
x_185 = lean_mk_syntax_ident(x_4);
lean_inc(x_152);
lean_inc(x_157);
x_186 = l_Lean_Syntax_node2(x_157, x_152, x_184, x_185);
x_187 = l_Lean_Elab_Command_elabElabRulesAux___closed__7;
lean_inc(x_157);
x_188 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_188, 0, x_157);
lean_ctor_set(x_188, 1, x_187);
x_189 = l_Lean_Elab_Command_elabElabRulesAux___closed__35;
x_190 = l_Lean_Elab_Command_elabElabRulesAux___closed__36;
lean_inc_ref(x_153);
lean_inc_ref(x_150);
x_191 = l_Lean_Name_mkStr4(x_150, x_153, x_154, x_190);
lean_inc(x_149);
lean_inc(x_191);
lean_inc(x_158);
x_192 = l_Lean_addMacroScope(x_158, x_191, x_149);
x_193 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_193, 0, x_191);
lean_ctor_set(x_193, 1, x_183);
x_194 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_194, 0, x_193);
lean_ctor_set(x_194, 1, x_183);
lean_inc(x_157);
x_195 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_195, 0, x_157);
lean_ctor_set(x_195, 1, x_189);
lean_ctor_set(x_195, 2, x_192);
lean_ctor_set(x_195, 3, x_194);
x_196 = l_Lean_Elab_Command_elabElabRulesAux___closed__11;
lean_inc(x_157);
x_197 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_197, 0, x_157);
lean_ctor_set(x_197, 1, x_196);
x_198 = l_Lean_Elab_Command_elabElabRulesAux___closed__12;
lean_inc_ref(x_150);
x_199 = l_Lean_Name_mkStr4(x_150, x_165, x_166, x_198);
lean_inc(x_157);
x_200 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_200, 0, x_157);
lean_ctor_set(x_200, 1, x_198);
x_201 = l_Lean_Elab_Command_elabElabRulesAux___closed__22;
lean_inc_ref(x_150);
x_202 = l_Lean_Name_mkStr4(x_150, x_165, x_166, x_201);
x_203 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__7;
lean_inc_ref(x_150);
x_204 = l_Lean_Name_mkStr4(x_150, x_165, x_166, x_203);
x_205 = l_Array_append___redArg(x_156, x_14);
lean_dec(x_14);
x_206 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__9;
lean_inc(x_157);
x_207 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_207, 0, x_157);
lean_ctor_set(x_207, 1, x_206);
x_208 = l_Lean_Elab_Command_elabElabRulesAux___closed__17;
lean_inc_ref(x_150);
x_209 = l_Lean_Name_mkStr4(x_150, x_165, x_166, x_208);
x_210 = l_Lean_Elab_Command_elabElabRulesAux___closed__18;
lean_inc(x_157);
x_211 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_211, 0, x_157);
lean_ctor_set(x_211, 1, x_210);
lean_inc(x_157);
x_212 = l_Lean_Syntax_node1(x_157, x_209, x_211);
lean_inc(x_152);
lean_inc(x_157);
x_213 = l_Lean_Syntax_node1(x_157, x_152, x_212);
lean_inc(x_152);
lean_inc(x_157);
x_214 = l_Lean_Syntax_node1(x_157, x_152, x_213);
x_215 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__13;
lean_inc(x_157);
x_216 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_216, 0, x_157);
lean_ctor_set(x_216, 1, x_215);
x_217 = l_Lean_Elab_Command_elabElabRulesAux___closed__23;
lean_inc_ref(x_150);
x_218 = l_Lean_Name_mkStr4(x_150, x_165, x_166, x_217);
x_219 = l_Lean_Elab_Command_elabElabRulesAux___closed__24;
lean_inc(x_157);
x_220 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_220, 0, x_157);
lean_ctor_set(x_220, 1, x_219);
x_221 = l_Lean_Elab_Command_elabElabRulesAux___closed__25;
x_222 = l_Lean_Elab_Command_elabElabRulesAux___closed__26;
x_223 = l_Lean_Elab_Command_elabElabRulesAux___closed__27;
x_224 = l_Lean_addMacroScope(x_158, x_223, x_149);
x_225 = l_Lean_Name_mkStr3(x_150, x_153, x_221);
x_226 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_226, 0, x_225);
lean_ctor_set(x_226, 1, x_183);
x_227 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_227, 0, x_226);
lean_ctor_set(x_227, 1, x_183);
lean_inc(x_157);
x_228 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_228, 0, x_157);
lean_ctor_set(x_228, 1, x_222);
lean_ctor_set(x_228, 2, x_224);
lean_ctor_set(x_228, 3, x_227);
lean_inc(x_157);
x_229 = l_Lean_Syntax_node2(x_157, x_218, x_220, x_228);
lean_inc(x_157);
x_230 = l_Lean_Syntax_node4(x_157, x_204, x_207, x_214, x_216, x_229);
x_231 = lean_array_push(x_205, x_230);
lean_inc(x_157);
x_232 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_232, 0, x_157);
lean_ctor_set(x_232, 1, x_152);
lean_ctor_set(x_232, 2, x_231);
lean_inc(x_157);
x_233 = l_Lean_Syntax_node1(x_157, x_202, x_232);
lean_inc(x_157);
x_234 = l_Lean_Syntax_node2(x_157, x_199, x_200, x_233);
x_235 = l_Lean_Elab_Command_elabElabRulesAux___closed__28;
x_236 = lean_array_push(x_235, x_164);
x_237 = lean_array_push(x_236, x_178);
x_238 = lean_array_push(x_237, x_151);
x_239 = lean_array_push(x_238, x_179);
x_240 = lean_array_push(x_239, x_186);
x_241 = lean_array_push(x_240, x_188);
x_242 = lean_array_push(x_241, x_195);
x_243 = lean_array_push(x_242, x_197);
x_244 = lean_array_push(x_243, x_234);
x_245 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_245, 0, x_157);
lean_ctor_set(x_245, 1, x_160);
lean_ctor_set(x_245, 2, x_244);
x_246 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_246, 0, x_245);
return x_246;
}
block_264:
{
lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; 
x_254 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__4;
x_255 = l_Lean_Elab_Command_elabElabRulesAux___closed__29;
x_256 = l_Lean_Elab_Command_elabElabRulesAux___closed__30;
x_257 = l_Lean_Elab_Command_elabElabRulesAux___closed__31;
x_258 = l_Lean_Elab_Command_elabElabRulesAux___closed__32;
x_259 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__11;
x_260 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__12;
if (lean_obj_tag(x_1) == 1)
{
lean_object* x_261; lean_object* x_262; 
x_261 = lean_ctor_get(x_1, 0);
lean_inc(x_261);
lean_dec_ref(x_1);
x_262 = l_Array_mkArray1___redArg(x_261);
x_149 = x_248;
x_150 = x_254;
x_151 = x_249;
x_152 = x_259;
x_153 = x_255;
x_154 = x_256;
x_155 = lean_box(0);
x_156 = x_260;
x_157 = x_250;
x_158 = x_252;
x_159 = x_257;
x_160 = x_258;
x_161 = x_251;
x_162 = x_262;
goto block_247;
}
else
{
lean_object* x_263; 
lean_dec(x_1);
x_263 = l_Lean_Elab_Command_elabElabRulesAux___closed__33;
x_149 = x_248;
x_150 = x_254;
x_151 = x_249;
x_152 = x_259;
x_153 = x_255;
x_154 = x_256;
x_155 = lean_box(0);
x_156 = x_260;
x_157 = x_250;
x_158 = x_252;
x_159 = x_257;
x_160 = x_258;
x_161 = x_251;
x_162 = x_263;
goto block_247;
}
}
block_386:
{
lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; 
lean_inc_ref(x_273);
x_278 = l_Array_append___redArg(x_273, x_277);
lean_dec_ref(x_277);
lean_inc(x_275);
lean_inc(x_272);
x_279 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_279, 0, x_272);
lean_ctor_set(x_279, 1, x_275);
lean_ctor_set(x_279, 2, x_278);
x_280 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__5;
x_281 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__6;
x_282 = l_Lean_Elab_Command_elabElabRulesAux___closed__0;
lean_inc_ref(x_274);
x_283 = l_Lean_Name_mkStr4(x_274, x_280, x_281, x_282);
x_284 = l_Lean_Elab_Command_elabElabRulesAux___closed__1;
lean_inc(x_272);
x_285 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_285, 0, x_272);
lean_ctor_set(x_285, 1, x_284);
x_286 = l_Lean_Elab_Command_elabElabRulesAux___closed__2;
x_287 = l_Lean_Syntax_SepArray_ofElems(x_286, x_271);
lean_dec_ref(x_271);
lean_inc_ref(x_273);
x_288 = l_Array_append___redArg(x_273, x_287);
lean_dec_ref(x_287);
lean_inc(x_275);
lean_inc(x_272);
x_289 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_289, 0, x_272);
lean_ctor_set(x_289, 1, x_275);
lean_ctor_set(x_289, 2, x_288);
x_290 = l_Lean_Elab_Command_elabElabRulesAux___closed__3;
lean_inc(x_272);
x_291 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_291, 0, x_272);
lean_ctor_set(x_291, 1, x_290);
lean_inc(x_272);
x_292 = l_Lean_Syntax_node3(x_272, x_283, x_285, x_289, x_291);
lean_inc(x_275);
lean_inc(x_272);
x_293 = l_Lean_Syntax_node1(x_272, x_275, x_292);
lean_inc(x_272);
x_294 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_294, 0, x_272);
lean_ctor_set(x_294, 1, x_265);
x_295 = l_Lean_Elab_Command_elabElabRulesAux___closed__5;
x_296 = l_Lean_Elab_Command_elabElabRulesAux___closed__6;
lean_inc(x_276);
lean_inc(x_266);
x_297 = l_Lean_addMacroScope(x_266, x_296, x_276);
x_298 = lean_box(0);
lean_inc(x_272);
x_299 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_299, 0, x_272);
lean_ctor_set(x_299, 1, x_295);
lean_ctor_set(x_299, 2, x_297);
lean_ctor_set(x_299, 3, x_298);
x_300 = lean_mk_syntax_ident(x_4);
lean_inc(x_275);
lean_inc(x_272);
x_301 = l_Lean_Syntax_node2(x_272, x_275, x_299, x_300);
x_302 = l_Lean_Elab_Command_elabElabRulesAux___closed__7;
lean_inc(x_272);
x_303 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_303, 0, x_272);
lean_ctor_set(x_303, 1, x_302);
x_304 = l_Lean_Elab_Command_elabElabRulesAux___closed__38;
x_305 = l_Lean_Elab_Command_elabElabRulesAux___closed__39;
x_306 = l_Lean_Elab_Command_elabElabRulesAux___closed__40;
lean_inc_ref(x_270);
lean_inc_ref(x_274);
x_307 = l_Lean_Name_mkStr4(x_274, x_270, x_305, x_306);
lean_inc(x_276);
lean_inc(x_307);
lean_inc(x_266);
x_308 = l_Lean_addMacroScope(x_266, x_307, x_276);
x_309 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_309, 0, x_307);
lean_ctor_set(x_309, 1, x_298);
x_310 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_310, 0, x_309);
lean_ctor_set(x_310, 1, x_298);
lean_inc(x_272);
x_311 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_311, 0, x_272);
lean_ctor_set(x_311, 1, x_304);
lean_ctor_set(x_311, 2, x_308);
lean_ctor_set(x_311, 3, x_310);
x_312 = l_Lean_Elab_Command_elabElabRulesAux___closed__11;
lean_inc(x_272);
x_313 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_313, 0, x_272);
lean_ctor_set(x_313, 1, x_312);
x_314 = l_Lean_Elab_Command_elabElabRulesAux___closed__12;
lean_inc_ref(x_274);
x_315 = l_Lean_Name_mkStr4(x_274, x_280, x_281, x_314);
lean_inc(x_272);
x_316 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_316, 0, x_272);
lean_ctor_set(x_316, 1, x_314);
x_317 = l_Lean_Elab_Command_elabElabRulesAux___closed__13;
lean_inc_ref(x_274);
x_318 = l_Lean_Name_mkStr4(x_274, x_280, x_281, x_317);
x_319 = l_Lean_Elab_Command_elabElabRulesAux___closed__15;
x_320 = l_Lean_Elab_Command_elabElabRulesAux___closed__16;
lean_inc(x_276);
lean_inc(x_266);
x_321 = l_Lean_addMacroScope(x_266, x_320, x_276);
lean_inc(x_272);
x_322 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_322, 0, x_272);
lean_ctor_set(x_322, 1, x_319);
lean_ctor_set(x_322, 2, x_321);
lean_ctor_set(x_322, 3, x_298);
x_323 = l_Lean_Elab_Command_elabElabRulesAux___closed__42;
x_324 = l_Lean_Elab_Command_elabElabRulesAux___closed__43;
lean_inc(x_276);
lean_inc(x_266);
x_325 = l_Lean_addMacroScope(x_266, x_324, x_276);
lean_inc(x_272);
x_326 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_326, 0, x_272);
lean_ctor_set(x_326, 1, x_323);
lean_ctor_set(x_326, 2, x_325);
lean_ctor_set(x_326, 3, x_298);
lean_inc_ref(x_322);
lean_inc(x_275);
lean_inc(x_272);
x_327 = l_Lean_Syntax_node2(x_272, x_275, x_322, x_326);
lean_inc_ref(x_273);
lean_inc(x_275);
lean_inc(x_272);
x_328 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_328, 0, x_272);
lean_ctor_set(x_328, 1, x_275);
lean_ctor_set(x_328, 2, x_273);
x_329 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__13;
lean_inc(x_272);
x_330 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_330, 0, x_272);
lean_ctor_set(x_330, 1, x_329);
x_331 = l_Lean_Elab_Command_elabElabRulesAux___closed__19;
lean_inc_ref(x_274);
x_332 = l_Lean_Name_mkStr4(x_274, x_280, x_281, x_331);
lean_inc(x_272);
x_333 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_333, 0, x_272);
lean_ctor_set(x_333, 1, x_331);
x_334 = l_Lean_Elab_Command_elabElabRulesAux___closed__20;
lean_inc_ref(x_274);
x_335 = l_Lean_Name_mkStr4(x_274, x_280, x_281, x_334);
lean_inc_ref(x_328);
lean_inc(x_272);
x_336 = l_Lean_Syntax_node2(x_272, x_335, x_328, x_322);
lean_inc(x_275);
lean_inc(x_272);
x_337 = l_Lean_Syntax_node1(x_272, x_275, x_336);
x_338 = l_Lean_Elab_Command_elabElabRulesAux___closed__21;
lean_inc(x_272);
x_339 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_339, 0, x_272);
lean_ctor_set(x_339, 1, x_338);
x_340 = l_Lean_Elab_Command_elabElabRulesAux___closed__22;
lean_inc_ref(x_274);
x_341 = l_Lean_Name_mkStr4(x_274, x_280, x_281, x_340);
x_342 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__7;
lean_inc_ref(x_274);
x_343 = l_Lean_Name_mkStr4(x_274, x_280, x_281, x_342);
x_344 = l_Array_append___redArg(x_273, x_14);
lean_dec(x_14);
x_345 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__9;
lean_inc(x_272);
x_346 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_346, 0, x_272);
lean_ctor_set(x_346, 1, x_345);
x_347 = l_Lean_Elab_Command_elabElabRulesAux___closed__17;
lean_inc_ref(x_274);
x_348 = l_Lean_Name_mkStr4(x_274, x_280, x_281, x_347);
x_349 = l_Lean_Elab_Command_elabElabRulesAux___closed__18;
lean_inc(x_272);
x_350 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_350, 0, x_272);
lean_ctor_set(x_350, 1, x_349);
lean_inc(x_272);
x_351 = l_Lean_Syntax_node1(x_272, x_348, x_350);
lean_inc(x_275);
lean_inc(x_272);
x_352 = l_Lean_Syntax_node1(x_272, x_275, x_351);
lean_inc(x_275);
lean_inc(x_272);
x_353 = l_Lean_Syntax_node1(x_272, x_275, x_352);
x_354 = l_Lean_Elab_Command_elabElabRulesAux___closed__23;
lean_inc_ref(x_274);
x_355 = l_Lean_Name_mkStr4(x_274, x_280, x_281, x_354);
x_356 = l_Lean_Elab_Command_elabElabRulesAux___closed__24;
lean_inc(x_272);
x_357 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_357, 0, x_272);
lean_ctor_set(x_357, 1, x_356);
x_358 = l_Lean_Elab_Command_elabElabRulesAux___closed__25;
x_359 = l_Lean_Elab_Command_elabElabRulesAux___closed__26;
x_360 = l_Lean_Elab_Command_elabElabRulesAux___closed__27;
x_361 = l_Lean_addMacroScope(x_266, x_360, x_276);
x_362 = l_Lean_Name_mkStr3(x_274, x_270, x_358);
x_363 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_363, 0, x_362);
lean_ctor_set(x_363, 1, x_298);
x_364 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_364, 0, x_363);
lean_ctor_set(x_364, 1, x_298);
lean_inc(x_272);
x_365 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_365, 0, x_272);
lean_ctor_set(x_365, 1, x_359);
lean_ctor_set(x_365, 2, x_361);
lean_ctor_set(x_365, 3, x_364);
lean_inc(x_272);
x_366 = l_Lean_Syntax_node2(x_272, x_355, x_357, x_365);
lean_inc_ref(x_330);
lean_inc(x_272);
x_367 = l_Lean_Syntax_node4(x_272, x_343, x_346, x_353, x_330, x_366);
x_368 = lean_array_push(x_344, x_367);
lean_inc(x_272);
x_369 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_369, 0, x_272);
lean_ctor_set(x_369, 1, x_275);
lean_ctor_set(x_369, 2, x_368);
lean_inc(x_272);
x_370 = l_Lean_Syntax_node1(x_272, x_341, x_369);
lean_inc_ref_n(x_328, 2);
lean_inc(x_272);
x_371 = l_Lean_Syntax_node6(x_272, x_332, x_333, x_328, x_328, x_337, x_339, x_370);
lean_inc(x_272);
x_372 = l_Lean_Syntax_node4(x_272, x_318, x_327, x_328, x_330, x_371);
lean_inc(x_272);
x_373 = l_Lean_Syntax_node2(x_272, x_315, x_316, x_372);
x_374 = l_Lean_Elab_Command_elabElabRulesAux___closed__28;
x_375 = lean_array_push(x_374, x_279);
x_376 = lean_array_push(x_375, x_293);
x_377 = lean_array_push(x_376, x_269);
x_378 = lean_array_push(x_377, x_294);
x_379 = lean_array_push(x_378, x_301);
x_380 = lean_array_push(x_379, x_303);
x_381 = lean_array_push(x_380, x_311);
x_382 = lean_array_push(x_381, x_313);
x_383 = lean_array_push(x_382, x_373);
x_384 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_384, 0, x_272);
lean_ctor_set(x_384, 1, x_268);
lean_ctor_set(x_384, 2, x_383);
x_385 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_385, 0, x_384);
return x_385;
}
block_402:
{
lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; 
x_393 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__4;
x_394 = l_Lean_Elab_Command_elabElabRulesAux___closed__29;
x_395 = l_Lean_Elab_Command_elabElabRulesAux___closed__31;
x_396 = l_Lean_Elab_Command_elabElabRulesAux___closed__32;
x_397 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__11;
x_398 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__12;
if (lean_obj_tag(x_1) == 1)
{
lean_object* x_399; lean_object* x_400; 
x_399 = lean_ctor_get(x_1, 0);
lean_inc(x_399);
lean_dec_ref(x_1);
x_400 = l_Array_mkArray1___redArg(x_399);
x_265 = x_395;
x_266 = x_391;
x_267 = lean_box(0);
x_268 = x_396;
x_269 = x_387;
x_270 = x_394;
x_271 = x_389;
x_272 = x_388;
x_273 = x_398;
x_274 = x_393;
x_275 = x_397;
x_276 = x_390;
x_277 = x_400;
goto block_386;
}
else
{
lean_object* x_401; 
lean_dec(x_1);
x_401 = l_Lean_Elab_Command_elabElabRulesAux___closed__33;
x_265 = x_395;
x_266 = x_391;
x_267 = lean_box(0);
x_268 = x_396;
x_269 = x_387;
x_270 = x_394;
x_271 = x_389;
x_272 = x_388;
x_273 = x_398;
x_274 = x_393;
x_275 = x_397;
x_276 = x_390;
x_277 = x_401;
goto block_386;
}
}
block_500:
{
lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; 
lean_inc_ref(x_409);
x_416 = l_Array_append___redArg(x_409, x_415);
lean_dec_ref(x_415);
lean_inc(x_408);
lean_inc(x_414);
x_417 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_417, 0, x_414);
lean_ctor_set(x_417, 1, x_408);
lean_ctor_set(x_417, 2, x_416);
x_418 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__5;
x_419 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__6;
x_420 = l_Lean_Elab_Command_elabElabRulesAux___closed__0;
lean_inc_ref(x_412);
x_421 = l_Lean_Name_mkStr4(x_412, x_418, x_419, x_420);
x_422 = l_Lean_Elab_Command_elabElabRulesAux___closed__1;
lean_inc(x_414);
x_423 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_423, 0, x_414);
lean_ctor_set(x_423, 1, x_422);
x_424 = l_Lean_Elab_Command_elabElabRulesAux___closed__2;
x_425 = l_Lean_Syntax_SepArray_ofElems(x_424, x_411);
lean_dec_ref(x_411);
lean_inc_ref(x_409);
x_426 = l_Array_append___redArg(x_409, x_425);
lean_dec_ref(x_425);
lean_inc(x_408);
lean_inc(x_414);
x_427 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_427, 0, x_414);
lean_ctor_set(x_427, 1, x_408);
lean_ctor_set(x_427, 2, x_426);
x_428 = l_Lean_Elab_Command_elabElabRulesAux___closed__3;
lean_inc(x_414);
x_429 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_429, 0, x_414);
lean_ctor_set(x_429, 1, x_428);
lean_inc(x_414);
x_430 = l_Lean_Syntax_node3(x_414, x_421, x_423, x_427, x_429);
lean_inc(x_408);
lean_inc(x_414);
x_431 = l_Lean_Syntax_node1(x_414, x_408, x_430);
lean_inc(x_414);
x_432 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_432, 0, x_414);
lean_ctor_set(x_432, 1, x_405);
x_433 = l_Lean_Elab_Command_elabElabRulesAux___closed__5;
x_434 = l_Lean_Elab_Command_elabElabRulesAux___closed__6;
lean_inc(x_407);
lean_inc(x_413);
x_435 = l_Lean_addMacroScope(x_413, x_434, x_407);
x_436 = lean_box(0);
lean_inc(x_414);
x_437 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_437, 0, x_414);
lean_ctor_set(x_437, 1, x_433);
lean_ctor_set(x_437, 2, x_435);
lean_ctor_set(x_437, 3, x_436);
x_438 = lean_mk_syntax_ident(x_4);
lean_inc(x_408);
lean_inc(x_414);
x_439 = l_Lean_Syntax_node2(x_414, x_408, x_437, x_438);
x_440 = l_Lean_Elab_Command_elabElabRulesAux___closed__7;
lean_inc(x_414);
x_441 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_441, 0, x_414);
lean_ctor_set(x_441, 1, x_440);
x_442 = l_Lean_Elab_Command_elabElabRulesAux___closed__45;
x_443 = l_Lean_Elab_Command_elabElabRulesAux___closed__46;
lean_inc_ref(x_410);
lean_inc_ref(x_412);
x_444 = l_Lean_Name_mkStr4(x_412, x_410, x_443, x_443);
lean_inc(x_407);
lean_inc(x_444);
lean_inc(x_413);
x_445 = l_Lean_addMacroScope(x_413, x_444, x_407);
x_446 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_446, 0, x_444);
lean_ctor_set(x_446, 1, x_436);
x_447 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_447, 0, x_446);
lean_ctor_set(x_447, 1, x_436);
lean_inc(x_414);
x_448 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_448, 0, x_414);
lean_ctor_set(x_448, 1, x_442);
lean_ctor_set(x_448, 2, x_445);
lean_ctor_set(x_448, 3, x_447);
x_449 = l_Lean_Elab_Command_elabElabRulesAux___closed__11;
lean_inc(x_414);
x_450 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_450, 0, x_414);
lean_ctor_set(x_450, 1, x_449);
x_451 = l_Lean_Elab_Command_elabElabRulesAux___closed__12;
lean_inc_ref(x_412);
x_452 = l_Lean_Name_mkStr4(x_412, x_418, x_419, x_451);
lean_inc(x_414);
x_453 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_453, 0, x_414);
lean_ctor_set(x_453, 1, x_451);
x_454 = l_Lean_Elab_Command_elabElabRulesAux___closed__22;
lean_inc_ref(x_412);
x_455 = l_Lean_Name_mkStr4(x_412, x_418, x_419, x_454);
x_456 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__7;
lean_inc_ref(x_412);
x_457 = l_Lean_Name_mkStr4(x_412, x_418, x_419, x_456);
x_458 = l_Array_append___redArg(x_409, x_14);
lean_dec(x_14);
x_459 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__9;
lean_inc(x_414);
x_460 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_460, 0, x_414);
lean_ctor_set(x_460, 1, x_459);
x_461 = l_Lean_Elab_Command_elabElabRulesAux___closed__17;
lean_inc_ref(x_412);
x_462 = l_Lean_Name_mkStr4(x_412, x_418, x_419, x_461);
x_463 = l_Lean_Elab_Command_elabElabRulesAux___closed__18;
lean_inc(x_414);
x_464 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_464, 0, x_414);
lean_ctor_set(x_464, 1, x_463);
lean_inc(x_414);
x_465 = l_Lean_Syntax_node1(x_414, x_462, x_464);
lean_inc(x_408);
lean_inc(x_414);
x_466 = l_Lean_Syntax_node1(x_414, x_408, x_465);
lean_inc(x_408);
lean_inc(x_414);
x_467 = l_Lean_Syntax_node1(x_414, x_408, x_466);
x_468 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__13;
lean_inc(x_414);
x_469 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_469, 0, x_414);
lean_ctor_set(x_469, 1, x_468);
x_470 = l_Lean_Elab_Command_elabElabRulesAux___closed__23;
lean_inc_ref(x_412);
x_471 = l_Lean_Name_mkStr4(x_412, x_418, x_419, x_470);
x_472 = l_Lean_Elab_Command_elabElabRulesAux___closed__24;
lean_inc(x_414);
x_473 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_473, 0, x_414);
lean_ctor_set(x_473, 1, x_472);
x_474 = l_Lean_Elab_Command_elabElabRulesAux___closed__25;
x_475 = l_Lean_Elab_Command_elabElabRulesAux___closed__26;
x_476 = l_Lean_Elab_Command_elabElabRulesAux___closed__27;
x_477 = l_Lean_addMacroScope(x_413, x_476, x_407);
x_478 = l_Lean_Name_mkStr3(x_412, x_410, x_474);
x_479 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_479, 0, x_478);
lean_ctor_set(x_479, 1, x_436);
x_480 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_480, 0, x_479);
lean_ctor_set(x_480, 1, x_436);
lean_inc(x_414);
x_481 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_481, 0, x_414);
lean_ctor_set(x_481, 1, x_475);
lean_ctor_set(x_481, 2, x_477);
lean_ctor_set(x_481, 3, x_480);
lean_inc(x_414);
x_482 = l_Lean_Syntax_node2(x_414, x_471, x_473, x_481);
lean_inc(x_414);
x_483 = l_Lean_Syntax_node4(x_414, x_457, x_460, x_467, x_469, x_482);
x_484 = lean_array_push(x_458, x_483);
lean_inc(x_414);
x_485 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_485, 0, x_414);
lean_ctor_set(x_485, 1, x_408);
lean_ctor_set(x_485, 2, x_484);
lean_inc(x_414);
x_486 = l_Lean_Syntax_node1(x_414, x_455, x_485);
lean_inc(x_414);
x_487 = l_Lean_Syntax_node2(x_414, x_452, x_453, x_486);
x_488 = l_Lean_Elab_Command_elabElabRulesAux___closed__28;
x_489 = lean_array_push(x_488, x_417);
x_490 = lean_array_push(x_489, x_431);
x_491 = lean_array_push(x_490, x_406);
x_492 = lean_array_push(x_491, x_432);
x_493 = lean_array_push(x_492, x_439);
x_494 = lean_array_push(x_493, x_441);
x_495 = lean_array_push(x_494, x_448);
x_496 = lean_array_push(x_495, x_450);
x_497 = lean_array_push(x_496, x_487);
x_498 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_498, 0, x_414);
lean_ctor_set(x_498, 1, x_403);
lean_ctor_set(x_498, 2, x_497);
x_499 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_499, 0, x_498);
return x_499;
}
block_516:
{
lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; 
x_507 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__4;
x_508 = l_Lean_Elab_Command_elabElabRulesAux___closed__29;
x_509 = l_Lean_Elab_Command_elabElabRulesAux___closed__31;
x_510 = l_Lean_Elab_Command_elabElabRulesAux___closed__32;
x_511 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__11;
x_512 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__12;
if (lean_obj_tag(x_1) == 1)
{
lean_object* x_513; lean_object* x_514; 
x_513 = lean_ctor_get(x_1, 0);
lean_inc(x_513);
lean_dec_ref(x_1);
x_514 = l_Array_mkArray1___redArg(x_513);
x_403 = x_510;
x_404 = lean_box(0);
x_405 = x_509;
x_406 = x_501;
x_407 = x_502;
x_408 = x_511;
x_409 = x_512;
x_410 = x_508;
x_411 = x_503;
x_412 = x_507;
x_413 = x_505;
x_414 = x_504;
x_415 = x_514;
goto block_500;
}
else
{
lean_object* x_515; 
lean_dec(x_1);
x_515 = l_Lean_Elab_Command_elabElabRulesAux___closed__33;
x_403 = x_510;
x_404 = lean_box(0);
x_405 = x_509;
x_406 = x_501;
x_407 = x_502;
x_408 = x_511;
x_409 = x_512;
x_410 = x_508;
x_411 = x_503;
x_412 = x_507;
x_413 = x_505;
x_414 = x_504;
x_415 = x_515;
goto block_500;
}
}
block_652:
{
lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; 
lean_inc_ref(x_518);
x_531 = l_Array_append___redArg(x_518, x_530);
lean_dec_ref(x_530);
lean_inc(x_525);
lean_inc(x_527);
x_532 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_532, 0, x_527);
lean_ctor_set(x_532, 1, x_525);
lean_ctor_set(x_532, 2, x_531);
x_533 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__5;
x_534 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__6;
x_535 = l_Lean_Elab_Command_elabElabRulesAux___closed__0;
lean_inc_ref(x_524);
x_536 = l_Lean_Name_mkStr4(x_524, x_533, x_534, x_535);
x_537 = l_Lean_Elab_Command_elabElabRulesAux___closed__1;
lean_inc(x_527);
x_538 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_538, 0, x_527);
lean_ctor_set(x_538, 1, x_537);
x_539 = l_Lean_Elab_Command_elabElabRulesAux___closed__2;
x_540 = l_Lean_Syntax_SepArray_ofElems(x_539, x_529);
lean_dec_ref(x_529);
lean_inc_ref(x_518);
x_541 = l_Array_append___redArg(x_518, x_540);
lean_dec_ref(x_540);
lean_inc(x_525);
lean_inc(x_527);
x_542 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_542, 0, x_527);
lean_ctor_set(x_542, 1, x_525);
lean_ctor_set(x_542, 2, x_541);
x_543 = l_Lean_Elab_Command_elabElabRulesAux___closed__3;
lean_inc(x_527);
x_544 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_544, 0, x_527);
lean_ctor_set(x_544, 1, x_543);
lean_inc(x_527);
x_545 = l_Lean_Syntax_node3(x_527, x_536, x_538, x_542, x_544);
lean_inc(x_525);
lean_inc(x_527);
x_546 = l_Lean_Syntax_node1(x_527, x_525, x_545);
lean_inc(x_527);
x_547 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_547, 0, x_527);
lean_ctor_set(x_547, 1, x_521);
x_548 = l_Lean_Elab_Command_elabElabRulesAux___closed__5;
x_549 = l_Lean_Elab_Command_elabElabRulesAux___closed__6;
lean_inc(x_523);
lean_inc(x_522);
x_550 = l_Lean_addMacroScope(x_522, x_549, x_523);
x_551 = lean_box(0);
lean_inc(x_527);
x_552 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_552, 0, x_527);
lean_ctor_set(x_552, 1, x_548);
lean_ctor_set(x_552, 2, x_550);
lean_ctor_set(x_552, 3, x_551);
x_553 = lean_mk_syntax_ident(x_4);
lean_inc(x_525);
lean_inc(x_527);
x_554 = l_Lean_Syntax_node2(x_527, x_525, x_552, x_553);
x_555 = l_Lean_Elab_Command_elabElabRulesAux___closed__7;
lean_inc(x_527);
x_556 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_556, 0, x_527);
lean_ctor_set(x_556, 1, x_555);
x_557 = l_Lean_Elab_Command_elabElabRulesAux___closed__9;
x_558 = l_Lean_Elab_Command_elabElabRulesAux___closed__10;
lean_inc_ref(x_519);
lean_inc_ref(x_524);
x_559 = l_Lean_Name_mkStr4(x_524, x_519, x_534, x_558);
lean_inc(x_523);
lean_inc(x_559);
lean_inc(x_522);
x_560 = l_Lean_addMacroScope(x_522, x_559, x_523);
x_561 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_561, 0, x_559);
lean_ctor_set(x_561, 1, x_551);
x_562 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_562, 0, x_561);
lean_ctor_set(x_562, 1, x_551);
lean_inc(x_527);
x_563 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_563, 0, x_527);
lean_ctor_set(x_563, 1, x_557);
lean_ctor_set(x_563, 2, x_560);
lean_ctor_set(x_563, 3, x_562);
x_564 = l_Lean_Elab_Command_elabElabRulesAux___closed__11;
lean_inc(x_527);
x_565 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_565, 0, x_527);
lean_ctor_set(x_565, 1, x_564);
x_566 = l_Lean_Elab_Command_elabElabRulesAux___closed__12;
lean_inc_ref(x_524);
x_567 = l_Lean_Name_mkStr4(x_524, x_533, x_534, x_566);
lean_inc(x_527);
x_568 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_568, 0, x_527);
lean_ctor_set(x_568, 1, x_566);
x_569 = l_Lean_Elab_Command_elabElabRulesAux___closed__13;
lean_inc_ref(x_524);
x_570 = l_Lean_Name_mkStr4(x_524, x_533, x_534, x_569);
x_571 = l_Lean_Elab_Command_elabElabRulesAux___closed__15;
x_572 = l_Lean_Elab_Command_elabElabRulesAux___closed__16;
lean_inc(x_523);
lean_inc(x_522);
x_573 = l_Lean_addMacroScope(x_522, x_572, x_523);
lean_inc(x_527);
x_574 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_574, 0, x_527);
lean_ctor_set(x_574, 1, x_571);
lean_ctor_set(x_574, 2, x_573);
lean_ctor_set(x_574, 3, x_551);
x_575 = l_Lean_Elab_Command_elabElabRulesAux___closed__48;
x_576 = l_Lean_Elab_Command_elabElabRulesAux___closed__49;
lean_inc(x_523);
lean_inc(x_522);
x_577 = l_Lean_addMacroScope(x_522, x_576, x_523);
lean_inc(x_527);
x_578 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_578, 0, x_527);
lean_ctor_set(x_578, 1, x_575);
lean_ctor_set(x_578, 2, x_577);
lean_ctor_set(x_578, 3, x_551);
lean_inc_ref(x_578);
lean_inc_ref(x_574);
lean_inc(x_525);
lean_inc(x_527);
x_579 = l_Lean_Syntax_node2(x_527, x_525, x_574, x_578);
lean_inc_ref(x_518);
lean_inc(x_525);
lean_inc(x_527);
x_580 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_580, 0, x_527);
lean_ctor_set(x_580, 1, x_525);
lean_ctor_set(x_580, 2, x_518);
x_581 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__13;
lean_inc(x_527);
x_582 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_582, 0, x_527);
lean_ctor_set(x_582, 1, x_581);
x_583 = l_Lean_Elab_Command_elabElabRulesAux___closed__50;
lean_inc_ref(x_524);
x_584 = l_Lean_Name_mkStr4(x_524, x_533, x_534, x_583);
x_585 = l_Lean_Elab_Command_elabElabRulesAux___closed__52;
x_586 = l_Lean_Elab_Command_elabElabRulesAux___closed__53;
lean_inc_ref(x_519);
lean_inc_ref(x_524);
x_587 = l_Lean_Name_mkStr4(x_524, x_519, x_534, x_586);
lean_inc(x_523);
lean_inc(x_587);
lean_inc(x_522);
x_588 = l_Lean_addMacroScope(x_522, x_587, x_523);
x_589 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_589, 0, x_587);
lean_ctor_set(x_589, 1, x_551);
x_590 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_590, 0, x_589);
lean_ctor_set(x_590, 1, x_551);
lean_inc(x_527);
x_591 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_591, 0, x_527);
lean_ctor_set(x_591, 1, x_585);
lean_ctor_set(x_591, 2, x_588);
lean_ctor_set(x_591, 3, x_590);
lean_inc(x_525);
lean_inc(x_527);
x_592 = l_Lean_Syntax_node1(x_527, x_525, x_528);
x_593 = l_Lean_Elab_Command_elabElabRulesAux___closed__19;
lean_inc_ref(x_524);
x_594 = l_Lean_Name_mkStr4(x_524, x_533, x_534, x_593);
lean_inc(x_527);
x_595 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_595, 0, x_527);
lean_ctor_set(x_595, 1, x_593);
x_596 = l_Lean_Elab_Command_elabElabRulesAux___closed__20;
lean_inc_ref(x_524);
x_597 = l_Lean_Name_mkStr4(x_524, x_533, x_534, x_596);
lean_inc_ref(x_580);
lean_inc(x_527);
x_598 = l_Lean_Syntax_node2(x_527, x_597, x_580, x_574);
lean_inc(x_525);
lean_inc(x_527);
x_599 = l_Lean_Syntax_node1(x_527, x_525, x_598);
x_600 = l_Lean_Elab_Command_elabElabRulesAux___closed__21;
lean_inc(x_527);
x_601 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_601, 0, x_527);
lean_ctor_set(x_601, 1, x_600);
x_602 = l_Lean_Elab_Command_elabElabRulesAux___closed__22;
lean_inc_ref(x_524);
x_603 = l_Lean_Name_mkStr4(x_524, x_533, x_534, x_602);
x_604 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__7;
lean_inc_ref(x_524);
x_605 = l_Lean_Name_mkStr4(x_524, x_533, x_534, x_604);
x_606 = l_Array_append___redArg(x_518, x_14);
lean_dec(x_14);
x_607 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__9;
lean_inc(x_527);
x_608 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_608, 0, x_527);
lean_ctor_set(x_608, 1, x_607);
x_609 = l_Lean_Elab_Command_elabElabRulesAux___closed__17;
lean_inc_ref(x_524);
x_610 = l_Lean_Name_mkStr4(x_524, x_533, x_534, x_609);
x_611 = l_Lean_Elab_Command_elabElabRulesAux___closed__18;
lean_inc(x_527);
x_612 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_612, 0, x_527);
lean_ctor_set(x_612, 1, x_611);
lean_inc(x_527);
x_613 = l_Lean_Syntax_node1(x_527, x_610, x_612);
lean_inc(x_525);
lean_inc(x_527);
x_614 = l_Lean_Syntax_node1(x_527, x_525, x_613);
lean_inc(x_525);
lean_inc(x_527);
x_615 = l_Lean_Syntax_node1(x_527, x_525, x_614);
x_616 = l_Lean_Elab_Command_elabElabRulesAux___closed__23;
lean_inc_ref(x_524);
x_617 = l_Lean_Name_mkStr4(x_524, x_533, x_534, x_616);
x_618 = l_Lean_Elab_Command_elabElabRulesAux___closed__24;
lean_inc(x_527);
x_619 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_619, 0, x_527);
lean_ctor_set(x_619, 1, x_618);
x_620 = l_Lean_Elab_Command_elabElabRulesAux___closed__25;
x_621 = l_Lean_Elab_Command_elabElabRulesAux___closed__26;
x_622 = l_Lean_Elab_Command_elabElabRulesAux___closed__27;
x_623 = l_Lean_addMacroScope(x_522, x_622, x_523);
x_624 = l_Lean_Name_mkStr3(x_524, x_519, x_620);
x_625 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_625, 0, x_624);
lean_ctor_set(x_625, 1, x_551);
x_626 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_626, 0, x_625);
lean_ctor_set(x_626, 1, x_551);
lean_inc(x_527);
x_627 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_627, 0, x_527);
lean_ctor_set(x_627, 1, x_621);
lean_ctor_set(x_627, 2, x_623);
lean_ctor_set(x_627, 3, x_626);
lean_inc(x_527);
x_628 = l_Lean_Syntax_node2(x_527, x_617, x_619, x_627);
lean_inc_ref(x_582);
lean_inc(x_527);
x_629 = l_Lean_Syntax_node4(x_527, x_605, x_608, x_615, x_582, x_628);
x_630 = lean_array_push(x_606, x_629);
lean_inc(x_525);
lean_inc(x_527);
x_631 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_631, 0, x_527);
lean_ctor_set(x_631, 1, x_525);
lean_ctor_set(x_631, 2, x_630);
lean_inc(x_527);
x_632 = l_Lean_Syntax_node1(x_527, x_603, x_631);
lean_inc_ref_n(x_580, 2);
lean_inc(x_527);
x_633 = l_Lean_Syntax_node6(x_527, x_594, x_595, x_580, x_580, x_599, x_601, x_632);
lean_inc_ref(x_582);
lean_inc_ref(x_580);
lean_inc(x_570);
lean_inc(x_527);
x_634 = l_Lean_Syntax_node4(x_527, x_570, x_592, x_580, x_582, x_633);
lean_inc_ref(x_568);
lean_inc(x_567);
lean_inc(x_527);
x_635 = l_Lean_Syntax_node2(x_527, x_567, x_568, x_634);
lean_inc(x_527);
x_636 = l_Lean_Syntax_node2(x_527, x_525, x_578, x_635);
lean_inc(x_527);
x_637 = l_Lean_Syntax_node2(x_527, x_584, x_591, x_636);
lean_inc(x_527);
x_638 = l_Lean_Syntax_node4(x_527, x_570, x_579, x_580, x_582, x_637);
lean_inc(x_527);
x_639 = l_Lean_Syntax_node2(x_527, x_567, x_568, x_638);
x_640 = l_Lean_Elab_Command_elabElabRulesAux___closed__28;
x_641 = lean_array_push(x_640, x_532);
x_642 = lean_array_push(x_641, x_546);
x_643 = lean_array_push(x_642, x_520);
x_644 = lean_array_push(x_643, x_547);
x_645 = lean_array_push(x_644, x_554);
x_646 = lean_array_push(x_645, x_556);
x_647 = lean_array_push(x_646, x_563);
x_648 = lean_array_push(x_647, x_565);
x_649 = lean_array_push(x_648, x_639);
x_650 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_650, 0, x_527);
lean_ctor_set(x_650, 1, x_517);
lean_ctor_set(x_650, 2, x_649);
x_651 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_651, 0, x_650);
return x_651;
}
block_669:
{
lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; 
x_660 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__4;
x_661 = l_Lean_Elab_Command_elabElabRulesAux___closed__29;
x_662 = l_Lean_Elab_Command_elabElabRulesAux___closed__31;
x_663 = l_Lean_Elab_Command_elabElabRulesAux___closed__32;
x_664 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__11;
x_665 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__12;
if (lean_obj_tag(x_1) == 1)
{
lean_object* x_666; lean_object* x_667; 
x_666 = lean_ctor_get(x_1, 0);
lean_inc(x_666);
lean_dec_ref(x_1);
x_667 = l_Array_mkArray1___redArg(x_666);
x_517 = x_663;
x_518 = x_665;
x_519 = x_661;
x_520 = x_653;
x_521 = x_662;
x_522 = x_658;
x_523 = x_656;
x_524 = x_660;
x_525 = x_664;
x_526 = lean_box(0);
x_527 = x_654;
x_528 = x_655;
x_529 = x_657;
x_530 = x_667;
goto block_652;
}
else
{
lean_object* x_668; 
lean_dec(x_1);
x_668 = l_Lean_Elab_Command_elabElabRulesAux___closed__33;
x_517 = x_663;
x_518 = x_665;
x_519 = x_661;
x_520 = x_653;
x_521 = x_662;
x_522 = x_658;
x_523 = x_656;
x_524 = x_660;
x_525 = x_664;
x_526 = lean_box(0);
x_527 = x_654;
x_528 = x_655;
x_529 = x_657;
x_530 = x_668;
goto block_652;
}
}
block_788:
{
lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; lean_object* x_774; lean_object* x_775; lean_object* x_776; lean_object* x_777; lean_object* x_778; lean_object* x_779; lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; 
lean_inc_ref(x_682);
x_684 = l_Array_append___redArg(x_682, x_683);
lean_dec_ref(x_683);
lean_inc(x_675);
lean_inc(x_671);
x_685 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_685, 0, x_671);
lean_ctor_set(x_685, 1, x_675);
lean_ctor_set(x_685, 2, x_684);
x_686 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__5;
x_687 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__6;
x_688 = l_Lean_Elab_Command_elabElabRulesAux___closed__0;
lean_inc_ref(x_677);
x_689 = l_Lean_Name_mkStr4(x_677, x_686, x_687, x_688);
x_690 = l_Lean_Elab_Command_elabElabRulesAux___closed__1;
lean_inc(x_671);
x_691 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_691, 0, x_671);
lean_ctor_set(x_691, 1, x_690);
x_692 = l_Lean_Elab_Command_elabElabRulesAux___closed__2;
x_693 = l_Lean_Syntax_SepArray_ofElems(x_692, x_676);
lean_dec_ref(x_676);
lean_inc_ref(x_682);
x_694 = l_Array_append___redArg(x_682, x_693);
lean_dec_ref(x_693);
lean_inc(x_675);
lean_inc(x_671);
x_695 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_695, 0, x_671);
lean_ctor_set(x_695, 1, x_675);
lean_ctor_set(x_695, 2, x_694);
x_696 = l_Lean_Elab_Command_elabElabRulesAux___closed__3;
lean_inc(x_671);
x_697 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_697, 0, x_671);
lean_ctor_set(x_697, 1, x_696);
lean_inc(x_671);
x_698 = l_Lean_Syntax_node3(x_671, x_689, x_691, x_695, x_697);
lean_inc(x_675);
lean_inc(x_671);
x_699 = l_Lean_Syntax_node1(x_671, x_675, x_698);
lean_inc(x_671);
x_700 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_700, 0, x_671);
lean_ctor_set(x_700, 1, x_674);
x_701 = l_Lean_Elab_Command_elabElabRulesAux___closed__5;
x_702 = l_Lean_Elab_Command_elabElabRulesAux___closed__6;
lean_inc(x_679);
lean_inc(x_680);
x_703 = l_Lean_addMacroScope(x_680, x_702, x_679);
x_704 = lean_box(0);
lean_inc(x_671);
x_705 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_705, 0, x_671);
lean_ctor_set(x_705, 1, x_701);
lean_ctor_set(x_705, 2, x_703);
lean_ctor_set(x_705, 3, x_704);
x_706 = lean_mk_syntax_ident(x_4);
lean_inc(x_675);
lean_inc(x_671);
x_707 = l_Lean_Syntax_node2(x_671, x_675, x_705, x_706);
x_708 = l_Lean_Elab_Command_elabElabRulesAux___closed__7;
lean_inc(x_671);
x_709 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_709, 0, x_671);
lean_ctor_set(x_709, 1, x_708);
x_710 = l_Lean_Elab_Command_elabElabRulesAux___closed__38;
x_711 = l_Lean_Elab_Command_elabElabRulesAux___closed__39;
x_712 = l_Lean_Elab_Command_elabElabRulesAux___closed__40;
lean_inc_ref(x_670);
lean_inc_ref(x_677);
x_713 = l_Lean_Name_mkStr4(x_677, x_670, x_711, x_712);
lean_inc(x_679);
lean_inc(x_713);
lean_inc(x_680);
x_714 = l_Lean_addMacroScope(x_680, x_713, x_679);
x_715 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_715, 0, x_713);
lean_ctor_set(x_715, 1, x_704);
x_716 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_716, 0, x_715);
lean_ctor_set(x_716, 1, x_704);
lean_inc(x_671);
x_717 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_717, 0, x_671);
lean_ctor_set(x_717, 1, x_710);
lean_ctor_set(x_717, 2, x_714);
lean_ctor_set(x_717, 3, x_716);
x_718 = l_Lean_Elab_Command_elabElabRulesAux___closed__11;
lean_inc(x_671);
x_719 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_719, 0, x_671);
lean_ctor_set(x_719, 1, x_718);
x_720 = l_Lean_Elab_Command_elabElabRulesAux___closed__12;
lean_inc_ref(x_677);
x_721 = l_Lean_Name_mkStr4(x_677, x_686, x_687, x_720);
lean_inc(x_671);
x_722 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_722, 0, x_671);
lean_ctor_set(x_722, 1, x_720);
x_723 = l_Lean_Elab_Command_elabElabRulesAux___closed__13;
lean_inc_ref(x_677);
x_724 = l_Lean_Name_mkStr4(x_677, x_686, x_687, x_723);
x_725 = l_Lean_Elab_Command_elabElabRulesAux___closed__15;
x_726 = l_Lean_Elab_Command_elabElabRulesAux___closed__16;
lean_inc(x_679);
lean_inc(x_680);
x_727 = l_Lean_addMacroScope(x_680, x_726, x_679);
lean_inc(x_671);
x_728 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_728, 0, x_671);
lean_ctor_set(x_728, 1, x_725);
lean_ctor_set(x_728, 2, x_727);
lean_ctor_set(x_728, 3, x_704);
lean_inc_ref(x_728);
lean_inc(x_675);
lean_inc(x_671);
x_729 = l_Lean_Syntax_node2(x_671, x_675, x_728, x_681);
lean_inc_ref(x_682);
lean_inc(x_675);
lean_inc(x_671);
x_730 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_730, 0, x_671);
lean_ctor_set(x_730, 1, x_675);
lean_ctor_set(x_730, 2, x_682);
x_731 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__13;
lean_inc(x_671);
x_732 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_732, 0, x_671);
lean_ctor_set(x_732, 1, x_731);
x_733 = l_Lean_Elab_Command_elabElabRulesAux___closed__19;
lean_inc_ref(x_677);
x_734 = l_Lean_Name_mkStr4(x_677, x_686, x_687, x_733);
lean_inc(x_671);
x_735 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_735, 0, x_671);
lean_ctor_set(x_735, 1, x_733);
x_736 = l_Lean_Elab_Command_elabElabRulesAux___closed__20;
lean_inc_ref(x_677);
x_737 = l_Lean_Name_mkStr4(x_677, x_686, x_687, x_736);
lean_inc_ref(x_730);
lean_inc(x_671);
x_738 = l_Lean_Syntax_node2(x_671, x_737, x_730, x_728);
lean_inc(x_675);
lean_inc(x_671);
x_739 = l_Lean_Syntax_node1(x_671, x_675, x_738);
x_740 = l_Lean_Elab_Command_elabElabRulesAux___closed__21;
lean_inc(x_671);
x_741 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_741, 0, x_671);
lean_ctor_set(x_741, 1, x_740);
x_742 = l_Lean_Elab_Command_elabElabRulesAux___closed__22;
lean_inc_ref(x_677);
x_743 = l_Lean_Name_mkStr4(x_677, x_686, x_687, x_742);
x_744 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__7;
lean_inc_ref(x_677);
x_745 = l_Lean_Name_mkStr4(x_677, x_686, x_687, x_744);
x_746 = l_Array_append___redArg(x_682, x_14);
lean_dec(x_14);
x_747 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__9;
lean_inc(x_671);
x_748 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_748, 0, x_671);
lean_ctor_set(x_748, 1, x_747);
x_749 = l_Lean_Elab_Command_elabElabRulesAux___closed__17;
lean_inc_ref(x_677);
x_750 = l_Lean_Name_mkStr4(x_677, x_686, x_687, x_749);
x_751 = l_Lean_Elab_Command_elabElabRulesAux___closed__18;
lean_inc(x_671);
x_752 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_752, 0, x_671);
lean_ctor_set(x_752, 1, x_751);
lean_inc(x_671);
x_753 = l_Lean_Syntax_node1(x_671, x_750, x_752);
lean_inc(x_675);
lean_inc(x_671);
x_754 = l_Lean_Syntax_node1(x_671, x_675, x_753);
lean_inc(x_675);
lean_inc(x_671);
x_755 = l_Lean_Syntax_node1(x_671, x_675, x_754);
x_756 = l_Lean_Elab_Command_elabElabRulesAux___closed__23;
lean_inc_ref(x_677);
x_757 = l_Lean_Name_mkStr4(x_677, x_686, x_687, x_756);
x_758 = l_Lean_Elab_Command_elabElabRulesAux___closed__24;
lean_inc(x_671);
x_759 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_759, 0, x_671);
lean_ctor_set(x_759, 1, x_758);
x_760 = l_Lean_Elab_Command_elabElabRulesAux___closed__25;
x_761 = l_Lean_Elab_Command_elabElabRulesAux___closed__26;
x_762 = l_Lean_Elab_Command_elabElabRulesAux___closed__27;
x_763 = l_Lean_addMacroScope(x_680, x_762, x_679);
x_764 = l_Lean_Name_mkStr3(x_677, x_670, x_760);
x_765 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_765, 0, x_764);
lean_ctor_set(x_765, 1, x_704);
x_766 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_766, 0, x_765);
lean_ctor_set(x_766, 1, x_704);
lean_inc(x_671);
x_767 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_767, 0, x_671);
lean_ctor_set(x_767, 1, x_761);
lean_ctor_set(x_767, 2, x_763);
lean_ctor_set(x_767, 3, x_766);
lean_inc(x_671);
x_768 = l_Lean_Syntax_node2(x_671, x_757, x_759, x_767);
lean_inc_ref(x_732);
lean_inc(x_671);
x_769 = l_Lean_Syntax_node4(x_671, x_745, x_748, x_755, x_732, x_768);
x_770 = lean_array_push(x_746, x_769);
lean_inc(x_671);
x_771 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_771, 0, x_671);
lean_ctor_set(x_771, 1, x_675);
lean_ctor_set(x_771, 2, x_770);
lean_inc(x_671);
x_772 = l_Lean_Syntax_node1(x_671, x_743, x_771);
lean_inc_ref_n(x_730, 2);
lean_inc(x_671);
x_773 = l_Lean_Syntax_node6(x_671, x_734, x_735, x_730, x_730, x_739, x_741, x_772);
lean_inc(x_671);
x_774 = l_Lean_Syntax_node4(x_671, x_724, x_729, x_730, x_732, x_773);
lean_inc(x_671);
x_775 = l_Lean_Syntax_node2(x_671, x_721, x_722, x_774);
x_776 = l_Lean_Elab_Command_elabElabRulesAux___closed__28;
x_777 = lean_array_push(x_776, x_685);
x_778 = lean_array_push(x_777, x_699);
x_779 = lean_array_push(x_778, x_672);
x_780 = lean_array_push(x_779, x_700);
x_781 = lean_array_push(x_780, x_707);
x_782 = lean_array_push(x_781, x_709);
x_783 = lean_array_push(x_782, x_717);
x_784 = lean_array_push(x_783, x_719);
x_785 = lean_array_push(x_784, x_775);
x_786 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_786, 0, x_671);
lean_ctor_set(x_786, 1, x_673);
lean_ctor_set(x_786, 2, x_785);
x_787 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_787, 0, x_786);
return x_787;
}
block_805:
{
lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; lean_object* x_801; 
x_796 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__4;
x_797 = l_Lean_Elab_Command_elabElabRulesAux___closed__29;
x_798 = l_Lean_Elab_Command_elabElabRulesAux___closed__31;
x_799 = l_Lean_Elab_Command_elabElabRulesAux___closed__32;
x_800 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__11;
x_801 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__12;
if (lean_obj_tag(x_1) == 1)
{
lean_object* x_802; lean_object* x_803; 
x_802 = lean_ctor_get(x_1, 0);
lean_inc(x_802);
lean_dec_ref(x_1);
x_803 = l_Array_mkArray1___redArg(x_802);
x_670 = x_797;
x_671 = x_791;
x_672 = x_790;
x_673 = x_799;
x_674 = x_798;
x_675 = x_800;
x_676 = x_789;
x_677 = x_796;
x_678 = lean_box(0);
x_679 = x_792;
x_680 = x_794;
x_681 = x_793;
x_682 = x_801;
x_683 = x_803;
goto block_788;
}
else
{
lean_object* x_804; 
lean_dec(x_1);
x_804 = l_Lean_Elab_Command_elabElabRulesAux___closed__33;
x_670 = x_797;
x_671 = x_791;
x_672 = x_790;
x_673 = x_799;
x_674 = x_798;
x_675 = x_800;
x_676 = x_789;
x_677 = x_796;
x_678 = lean_box(0);
x_679 = x_792;
x_680 = x_794;
x_681 = x_793;
x_682 = x_801;
x_683 = x_804;
goto block_788;
}
}
block_829:
{
lean_object* x_812; 
lean_inc(x_4);
x_812 = l_Lean_Elab_Command_elabElabRulesAux___lam__0(x_4, x_3, x_2, x_811, x_807, x_806);
if (lean_obj_tag(x_812) == 0)
{
lean_object* x_813; lean_object* x_814; 
x_813 = lean_ctor_get(x_812, 0);
lean_inc(x_813);
lean_dec_ref(x_812);
x_814 = l_Lean_Elab_Command_getRef___redArg(x_807);
if (lean_obj_tag(x_814) == 0)
{
lean_object* x_815; lean_object* x_816; 
x_815 = lean_ctor_get(x_814, 0);
lean_inc(x_815);
lean_dec_ref(x_814);
x_816 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_807);
if (lean_obj_tag(x_816) == 0)
{
lean_object* x_817; lean_object* x_818; lean_object* x_819; 
x_817 = lean_ctor_get(x_816, 0);
lean_inc(x_817);
lean_dec_ref(x_816);
x_818 = lean_ctor_get(x_807, 5);
lean_inc(x_818);
lean_dec_ref(x_807);
x_819 = l_Lean_SourceInfo_fromRef(x_815, x_810);
lean_dec(x_815);
if (lean_obj_tag(x_818) == 0)
{
lean_object* x_820; lean_object* x_821; 
x_820 = l_Lean_getMainModule___at___00Lean_Elab_Command_elabElabRulesAux_spec__1___redArg(x_806);
x_821 = lean_ctor_get(x_820, 0);
lean_inc(x_821);
lean_dec_ref(x_820);
x_501 = x_808;
x_502 = x_817;
x_503 = x_813;
x_504 = x_819;
x_505 = x_821;
x_506 = lean_box(0);
goto block_516;
}
else
{
lean_object* x_822; 
x_822 = lean_ctor_get(x_818, 0);
lean_inc(x_822);
lean_dec_ref(x_818);
x_501 = x_808;
x_502 = x_817;
x_503 = x_813;
x_504 = x_819;
x_505 = x_822;
x_506 = lean_box(0);
goto block_516;
}
}
else
{
uint8_t x_823; 
lean_dec(x_815);
lean_dec(x_813);
lean_dec(x_808);
lean_dec_ref(x_807);
lean_dec(x_14);
lean_dec(x_4);
lean_dec(x_1);
x_823 = !lean_is_exclusive(x_816);
if (x_823 == 0)
{
return x_816;
}
else
{
lean_object* x_824; lean_object* x_825; 
x_824 = lean_ctor_get(x_816, 0);
lean_inc(x_824);
lean_dec(x_816);
x_825 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_825, 0, x_824);
return x_825;
}
}
}
else
{
lean_dec(x_813);
lean_dec(x_808);
lean_dec_ref(x_807);
lean_dec(x_14);
lean_dec(x_4);
lean_dec(x_1);
return x_814;
}
}
else
{
uint8_t x_826; 
lean_dec(x_808);
lean_dec_ref(x_807);
lean_dec(x_14);
lean_dec(x_4);
lean_dec(x_1);
x_826 = !lean_is_exclusive(x_812);
if (x_826 == 0)
{
return x_812;
}
else
{
lean_object* x_827; lean_object* x_828; 
x_827 = lean_ctor_get(x_812, 0);
lean_inc(x_827);
lean_dec(x_812);
x_828 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_828, 0, x_827);
return x_828;
}
}
}
block_954:
{
lean_object* x_834; 
lean_inc(x_3);
x_834 = l_Lean_Parser_Command_visibility_ofAttrKind(x_3);
if (lean_obj_tag(x_6) == 1)
{
lean_object* x_835; lean_object* x_836; uint8_t x_837; 
lean_dec(x_15);
x_835 = lean_ctor_get(x_6, 0);
lean_inc(x_835);
lean_dec_ref(x_6);
x_836 = l_Lean_Elab_Command_elabElabRulesAux___closed__55;
x_837 = lean_name_eq(x_830, x_836);
if (x_837 == 0)
{
lean_object* x_838; uint8_t x_839; 
x_838 = l_Lean_Elab_Command_elabElabRulesAux___closed__57;
x_839 = lean_name_eq(x_830, x_838);
if (x_839 == 0)
{
lean_object* x_840; lean_object* x_841; lean_object* x_842; lean_object* x_843; lean_object* x_844; lean_object* x_845; 
lean_dec(x_834);
lean_dec(x_14);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_840 = l_Lean_Elab_Command_elabElabRulesAux___closed__59;
x_841 = l_Lean_MessageData_ofName(x_830);
x_842 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_842, 0, x_840);
lean_ctor_set(x_842, 1, x_841);
x_843 = l_Lean_Elab_Command_elabElabRulesAux___closed__61;
x_844 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_844, 0, x_842);
lean_ctor_set(x_844, 1, x_843);
x_845 = l_Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3___redArg(x_835, x_844, x_831, x_832);
lean_dec(x_835);
return x_845;
}
else
{
lean_object* x_846; lean_object* x_847; 
lean_dec(x_830);
x_846 = l_Lean_Elab_Command_elabElabRulesAux___closed__63;
lean_inc(x_4);
x_847 = l_Lean_Elab_Command_elabElabRulesAux___lam__0(x_4, x_3, x_2, x_846, x_831, x_832);
if (lean_obj_tag(x_847) == 0)
{
lean_object* x_848; lean_object* x_849; 
x_848 = lean_ctor_get(x_847, 0);
lean_inc(x_848);
lean_dec_ref(x_847);
x_849 = l_Lean_Elab_Command_getRef___redArg(x_831);
if (lean_obj_tag(x_849) == 0)
{
lean_object* x_850; lean_object* x_851; 
x_850 = lean_ctor_get(x_849, 0);
lean_inc(x_850);
lean_dec_ref(x_849);
x_851 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_831);
if (lean_obj_tag(x_851) == 0)
{
lean_object* x_852; lean_object* x_853; lean_object* x_854; 
x_852 = lean_ctor_get(x_851, 0);
lean_inc(x_852);
lean_dec_ref(x_851);
x_853 = lean_ctor_get(x_831, 5);
lean_inc(x_853);
lean_dec_ref(x_831);
x_854 = l_Lean_SourceInfo_fromRef(x_850, x_837);
lean_dec(x_850);
if (lean_obj_tag(x_853) == 0)
{
lean_object* x_855; lean_object* x_856; 
x_855 = l_Lean_getMainModule___at___00Lean_Elab_Command_elabElabRulesAux_spec__1___redArg(x_832);
x_856 = lean_ctor_get(x_855, 0);
lean_inc(x_856);
lean_dec_ref(x_855);
x_789 = x_848;
x_790 = x_834;
x_791 = x_854;
x_792 = x_852;
x_793 = x_835;
x_794 = x_856;
x_795 = lean_box(0);
goto block_805;
}
else
{
lean_object* x_857; 
x_857 = lean_ctor_get(x_853, 0);
lean_inc(x_857);
lean_dec_ref(x_853);
x_789 = x_848;
x_790 = x_834;
x_791 = x_854;
x_792 = x_852;
x_793 = x_835;
x_794 = x_857;
x_795 = lean_box(0);
goto block_805;
}
}
else
{
uint8_t x_858; 
lean_dec(x_850);
lean_dec(x_848);
lean_dec(x_835);
lean_dec(x_834);
lean_dec_ref(x_831);
lean_dec(x_14);
lean_dec(x_4);
lean_dec(x_1);
x_858 = !lean_is_exclusive(x_851);
if (x_858 == 0)
{
return x_851;
}
else
{
lean_object* x_859; lean_object* x_860; 
x_859 = lean_ctor_get(x_851, 0);
lean_inc(x_859);
lean_dec(x_851);
x_860 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_860, 0, x_859);
return x_860;
}
}
}
else
{
lean_dec(x_848);
lean_dec(x_835);
lean_dec(x_834);
lean_dec_ref(x_831);
lean_dec(x_14);
lean_dec(x_4);
lean_dec(x_1);
return x_849;
}
}
else
{
uint8_t x_861; 
lean_dec(x_835);
lean_dec(x_834);
lean_dec_ref(x_831);
lean_dec(x_14);
lean_dec(x_4);
lean_dec(x_1);
x_861 = !lean_is_exclusive(x_847);
if (x_861 == 0)
{
return x_847;
}
else
{
lean_object* x_862; lean_object* x_863; 
x_862 = lean_ctor_get(x_847, 0);
lean_inc(x_862);
lean_dec(x_847);
x_863 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_863, 0, x_862);
return x_863;
}
}
}
}
else
{
lean_object* x_864; lean_object* x_865; 
lean_dec(x_830);
x_864 = l_Lean_Elab_Command_elabElabRulesAux___closed__65;
lean_inc(x_4);
x_865 = l_Lean_Elab_Command_elabElabRulesAux___lam__0(x_4, x_3, x_2, x_864, x_831, x_832);
if (lean_obj_tag(x_865) == 0)
{
lean_object* x_866; lean_object* x_867; 
x_866 = lean_ctor_get(x_865, 0);
lean_inc(x_866);
lean_dec_ref(x_865);
x_867 = l_Lean_Elab_Command_getRef___redArg(x_831);
if (lean_obj_tag(x_867) == 0)
{
lean_object* x_868; lean_object* x_869; 
x_868 = lean_ctor_get(x_867, 0);
lean_inc(x_868);
lean_dec_ref(x_867);
x_869 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_831);
if (lean_obj_tag(x_869) == 0)
{
lean_object* x_870; lean_object* x_871; uint8_t x_872; lean_object* x_873; 
x_870 = lean_ctor_get(x_869, 0);
lean_inc(x_870);
lean_dec_ref(x_869);
x_871 = lean_ctor_get(x_831, 5);
lean_inc(x_871);
lean_dec_ref(x_831);
x_872 = 0;
x_873 = l_Lean_SourceInfo_fromRef(x_868, x_872);
lean_dec(x_868);
if (lean_obj_tag(x_871) == 0)
{
lean_object* x_874; lean_object* x_875; 
x_874 = l_Lean_getMainModule___at___00Lean_Elab_Command_elabElabRulesAux_spec__1___redArg(x_832);
x_875 = lean_ctor_get(x_874, 0);
lean_inc(x_875);
lean_dec_ref(x_874);
x_653 = x_834;
x_654 = x_873;
x_655 = x_835;
x_656 = x_870;
x_657 = x_866;
x_658 = x_875;
x_659 = lean_box(0);
goto block_669;
}
else
{
lean_object* x_876; 
x_876 = lean_ctor_get(x_871, 0);
lean_inc(x_876);
lean_dec_ref(x_871);
x_653 = x_834;
x_654 = x_873;
x_655 = x_835;
x_656 = x_870;
x_657 = x_866;
x_658 = x_876;
x_659 = lean_box(0);
goto block_669;
}
}
else
{
uint8_t x_877; 
lean_dec(x_868);
lean_dec(x_866);
lean_dec(x_835);
lean_dec(x_834);
lean_dec_ref(x_831);
lean_dec(x_14);
lean_dec(x_4);
lean_dec(x_1);
x_877 = !lean_is_exclusive(x_869);
if (x_877 == 0)
{
return x_869;
}
else
{
lean_object* x_878; lean_object* x_879; 
x_878 = lean_ctor_get(x_869, 0);
lean_inc(x_878);
lean_dec(x_869);
x_879 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_879, 0, x_878);
return x_879;
}
}
}
else
{
lean_dec(x_866);
lean_dec(x_835);
lean_dec(x_834);
lean_dec_ref(x_831);
lean_dec(x_14);
lean_dec(x_4);
lean_dec(x_1);
return x_867;
}
}
else
{
uint8_t x_880; 
lean_dec(x_835);
lean_dec(x_834);
lean_dec_ref(x_831);
lean_dec(x_14);
lean_dec(x_4);
lean_dec(x_1);
x_880 = !lean_is_exclusive(x_865);
if (x_880 == 0)
{
return x_865;
}
else
{
lean_object* x_881; lean_object* x_882; 
x_881 = lean_ctor_get(x_865, 0);
lean_inc(x_881);
lean_dec(x_865);
x_882 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_882, 0, x_881);
return x_882;
}
}
}
}
else
{
lean_object* x_883; uint8_t x_884; 
lean_dec(x_6);
x_883 = l_Lean_Elab_Command_elabElabRulesAux___closed__55;
x_884 = lean_name_eq(x_830, x_883);
if (x_884 == 0)
{
lean_object* x_885; uint8_t x_886; 
lean_dec(x_15);
x_885 = l_Lean_Elab_Command_elabElabRulesAux___closed__67;
x_886 = lean_name_eq(x_830, x_885);
if (x_886 == 0)
{
lean_object* x_887; uint8_t x_888; 
x_887 = l_Lean_Elab_Command_elabElabRulesAux___closed__69;
x_888 = lean_name_eq(x_830, x_887);
if (x_888 == 0)
{
lean_object* x_889; uint8_t x_890; 
x_889 = l_Lean_Elab_Command_elabElabRulesAux___closed__71;
x_890 = lean_name_eq(x_830, x_889);
if (x_890 == 0)
{
lean_object* x_891; uint8_t x_892; 
x_891 = l_Lean_Elab_Command_elabElabRulesAux___closed__57;
x_892 = lean_name_eq(x_830, x_891);
if (x_892 == 0)
{
lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; lean_object* x_898; 
lean_dec(x_834);
lean_dec(x_14);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_893 = l_Lean_Elab_Command_elabElabRulesAux___closed__73;
x_894 = l_Lean_MessageData_ofName(x_830);
x_895 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_895, 0, x_893);
lean_ctor_set(x_895, 1, x_894);
x_896 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__3;
x_897 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_897, 0, x_895);
lean_ctor_set(x_897, 1, x_896);
x_898 = l_Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3___redArg(x_897, x_831, x_832);
return x_898;
}
else
{
lean_object* x_899; lean_object* x_900; 
lean_dec(x_830);
x_899 = l_Lean_Elab_Command_elabElabRulesAux___closed__63;
lean_inc(x_4);
x_900 = l_Lean_Elab_Command_elabElabRulesAux___lam__0(x_4, x_3, x_2, x_899, x_831, x_832);
if (lean_obj_tag(x_900) == 0)
{
lean_object* x_901; lean_object* x_902; 
x_901 = lean_ctor_get(x_900, 0);
lean_inc(x_901);
lean_dec_ref(x_900);
x_902 = l_Lean_Elab_Command_getRef___redArg(x_831);
if (lean_obj_tag(x_902) == 0)
{
lean_object* x_903; lean_object* x_904; 
x_903 = lean_ctor_get(x_902, 0);
lean_inc(x_903);
lean_dec_ref(x_902);
x_904 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_831);
if (lean_obj_tag(x_904) == 0)
{
lean_object* x_905; lean_object* x_906; lean_object* x_907; 
x_905 = lean_ctor_get(x_904, 0);
lean_inc(x_905);
lean_dec_ref(x_904);
x_906 = lean_ctor_get(x_831, 5);
lean_inc(x_906);
lean_dec_ref(x_831);
x_907 = l_Lean_SourceInfo_fromRef(x_903, x_890);
lean_dec(x_903);
if (lean_obj_tag(x_906) == 0)
{
lean_object* x_908; lean_object* x_909; 
x_908 = l_Lean_getMainModule___at___00Lean_Elab_Command_elabElabRulesAux_spec__1___redArg(x_832);
x_909 = lean_ctor_get(x_908, 0);
lean_inc(x_909);
lean_dec_ref(x_908);
x_387 = x_834;
x_388 = x_907;
x_389 = x_901;
x_390 = x_905;
x_391 = x_909;
x_392 = lean_box(0);
goto block_402;
}
else
{
lean_object* x_910; 
x_910 = lean_ctor_get(x_906, 0);
lean_inc(x_910);
lean_dec_ref(x_906);
x_387 = x_834;
x_388 = x_907;
x_389 = x_901;
x_390 = x_905;
x_391 = x_910;
x_392 = lean_box(0);
goto block_402;
}
}
else
{
uint8_t x_911; 
lean_dec(x_903);
lean_dec(x_901);
lean_dec(x_834);
lean_dec_ref(x_831);
lean_dec(x_14);
lean_dec(x_4);
lean_dec(x_1);
x_911 = !lean_is_exclusive(x_904);
if (x_911 == 0)
{
return x_904;
}
else
{
lean_object* x_912; lean_object* x_913; 
x_912 = lean_ctor_get(x_904, 0);
lean_inc(x_912);
lean_dec(x_904);
x_913 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_913, 0, x_912);
return x_913;
}
}
}
else
{
lean_dec(x_901);
lean_dec(x_834);
lean_dec_ref(x_831);
lean_dec(x_14);
lean_dec(x_4);
lean_dec(x_1);
return x_902;
}
}
else
{
uint8_t x_914; 
lean_dec(x_834);
lean_dec_ref(x_831);
lean_dec(x_14);
lean_dec(x_4);
lean_dec(x_1);
x_914 = !lean_is_exclusive(x_900);
if (x_914 == 0)
{
return x_900;
}
else
{
lean_object* x_915; lean_object* x_916; 
x_915 = lean_ctor_get(x_900, 0);
lean_inc(x_915);
lean_dec(x_900);
x_916 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_916, 0, x_915);
return x_916;
}
}
}
}
else
{
lean_dec(x_830);
x_806 = x_832;
x_807 = x_831;
x_808 = x_834;
x_809 = lean_box(0);
x_810 = x_886;
x_811 = x_887;
goto block_829;
}
}
else
{
lean_dec(x_830);
x_806 = x_832;
x_807 = x_831;
x_808 = x_834;
x_809 = lean_box(0);
x_810 = x_886;
x_811 = x_887;
goto block_829;
}
}
else
{
lean_object* x_917; lean_object* x_918; 
lean_dec(x_830);
x_917 = l_Lean_Elab_Command_elabElabRulesAux___closed__75;
lean_inc(x_4);
x_918 = l_Lean_Elab_Command_elabElabRulesAux___lam__0(x_4, x_3, x_2, x_917, x_831, x_832);
if (lean_obj_tag(x_918) == 0)
{
lean_object* x_919; lean_object* x_920; 
x_919 = lean_ctor_get(x_918, 0);
lean_inc(x_919);
lean_dec_ref(x_918);
x_920 = l_Lean_Elab_Command_getRef___redArg(x_831);
if (lean_obj_tag(x_920) == 0)
{
lean_object* x_921; lean_object* x_922; 
x_921 = lean_ctor_get(x_920, 0);
lean_inc(x_921);
lean_dec_ref(x_920);
x_922 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_831);
if (lean_obj_tag(x_922) == 0)
{
lean_object* x_923; lean_object* x_924; lean_object* x_925; 
x_923 = lean_ctor_get(x_922, 0);
lean_inc(x_923);
lean_dec_ref(x_922);
x_924 = lean_ctor_get(x_831, 5);
lean_inc(x_924);
lean_dec_ref(x_831);
x_925 = l_Lean_SourceInfo_fromRef(x_921, x_884);
lean_dec(x_921);
if (lean_obj_tag(x_924) == 0)
{
lean_object* x_926; lean_object* x_927; 
x_926 = l_Lean_getMainModule___at___00Lean_Elab_Command_elabElabRulesAux_spec__1___redArg(x_832);
x_927 = lean_ctor_get(x_926, 0);
lean_inc(x_927);
lean_dec_ref(x_926);
x_248 = x_923;
x_249 = x_834;
x_250 = x_925;
x_251 = x_919;
x_252 = x_927;
x_253 = lean_box(0);
goto block_264;
}
else
{
lean_object* x_928; 
x_928 = lean_ctor_get(x_924, 0);
lean_inc(x_928);
lean_dec_ref(x_924);
x_248 = x_923;
x_249 = x_834;
x_250 = x_925;
x_251 = x_919;
x_252 = x_928;
x_253 = lean_box(0);
goto block_264;
}
}
else
{
uint8_t x_929; 
lean_dec(x_921);
lean_dec(x_919);
lean_dec(x_834);
lean_dec_ref(x_831);
lean_dec(x_14);
lean_dec(x_4);
lean_dec(x_1);
x_929 = !lean_is_exclusive(x_922);
if (x_929 == 0)
{
return x_922;
}
else
{
lean_object* x_930; lean_object* x_931; 
x_930 = lean_ctor_get(x_922, 0);
lean_inc(x_930);
lean_dec(x_922);
x_931 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_931, 0, x_930);
return x_931;
}
}
}
else
{
lean_dec(x_919);
lean_dec(x_834);
lean_dec_ref(x_831);
lean_dec(x_14);
lean_dec(x_4);
lean_dec(x_1);
return x_920;
}
}
else
{
uint8_t x_932; 
lean_dec(x_834);
lean_dec_ref(x_831);
lean_dec(x_14);
lean_dec(x_4);
lean_dec(x_1);
x_932 = !lean_is_exclusive(x_918);
if (x_932 == 0)
{
return x_918;
}
else
{
lean_object* x_933; lean_object* x_934; 
x_933 = lean_ctor_get(x_918, 0);
lean_inc(x_933);
lean_dec(x_918);
x_934 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_934, 0, x_933);
return x_934;
}
}
}
}
else
{
lean_object* x_935; lean_object* x_936; 
lean_dec(x_830);
x_935 = l_Lean_Elab_Command_elabElabRulesAux___closed__65;
lean_inc(x_4);
x_936 = l_Lean_Elab_Command_elabElabRulesAux___lam__0(x_4, x_3, x_2, x_935, x_831, x_832);
if (lean_obj_tag(x_936) == 0)
{
lean_object* x_937; lean_object* x_938; 
x_937 = lean_ctor_get(x_936, 0);
lean_inc(x_937);
lean_dec_ref(x_936);
x_938 = l_Lean_Elab_Command_getRef___redArg(x_831);
if (lean_obj_tag(x_938) == 0)
{
lean_object* x_939; lean_object* x_940; 
x_939 = lean_ctor_get(x_938, 0);
lean_inc(x_939);
lean_dec_ref(x_938);
x_940 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_831);
if (lean_obj_tag(x_940) == 0)
{
lean_object* x_941; lean_object* x_942; uint8_t x_943; lean_object* x_944; 
x_941 = lean_ctor_get(x_940, 0);
lean_inc(x_941);
lean_dec_ref(x_940);
x_942 = lean_ctor_get(x_831, 5);
lean_inc(x_942);
lean_dec_ref(x_831);
x_943 = 0;
x_944 = l_Lean_SourceInfo_fromRef(x_939, x_943);
lean_dec(x_939);
if (lean_obj_tag(x_942) == 0)
{
lean_object* x_945; lean_object* x_946; 
x_945 = l_Lean_getMainModule___at___00Lean_Elab_Command_elabElabRulesAux_spec__1___redArg(x_832);
x_946 = lean_ctor_get(x_945, 0);
lean_inc(x_946);
lean_dec_ref(x_945);
x_133 = x_941;
x_134 = x_834;
x_135 = x_944;
x_136 = x_937;
x_137 = x_946;
x_138 = lean_box(0);
goto block_148;
}
else
{
lean_object* x_947; 
x_947 = lean_ctor_get(x_942, 0);
lean_inc(x_947);
lean_dec_ref(x_942);
x_133 = x_941;
x_134 = x_834;
x_135 = x_944;
x_136 = x_937;
x_137 = x_947;
x_138 = lean_box(0);
goto block_148;
}
}
else
{
uint8_t x_948; 
lean_dec(x_939);
lean_dec(x_937);
lean_dec(x_834);
lean_dec_ref(x_831);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_4);
lean_dec(x_1);
x_948 = !lean_is_exclusive(x_940);
if (x_948 == 0)
{
return x_940;
}
else
{
lean_object* x_949; lean_object* x_950; 
x_949 = lean_ctor_get(x_940, 0);
lean_inc(x_949);
lean_dec(x_940);
x_950 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_950, 0, x_949);
return x_950;
}
}
}
else
{
lean_dec(x_937);
lean_dec(x_834);
lean_dec_ref(x_831);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_4);
lean_dec(x_1);
return x_938;
}
}
else
{
uint8_t x_951; 
lean_dec(x_834);
lean_dec_ref(x_831);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_4);
lean_dec(x_1);
x_951 = !lean_is_exclusive(x_936);
if (x_951 == 0)
{
return x_936;
}
else
{
lean_object* x_952; lean_object* x_953; 
x_952 = lean_ctor_get(x_936, 0);
lean_inc(x_952);
lean_dec(x_936);
x_953 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_953, 0, x_952);
return x_953;
}
}
}
}
}
}
else
{
uint8_t x_963; 
lean_dec_ref(x_8);
lean_dec(x_6);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_963 = !lean_is_exclusive(x_13);
if (x_963 == 0)
{
return x_13;
}
else
{
lean_object* x_964; lean_object* x_965; 
x_964 = lean_ctor_get(x_13, 0);
lean_inc(x_964);
lean_dec(x_13);
x_965 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_965, 0, x_964);
return x_965;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4(x_1, x_2, x_3, x_4);
lean_dec(x_4);
lean_dec_ref(x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2(x_1, x_2, x_3);
lean_dec(x_3);
lean_dec_ref(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3(x_1, x_2, x_3);
lean_dec(x_3);
lean_dec_ref(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_getMainModule___at___00Lean_Elab_Command_elabElabRulesAux_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_getMainModule___at___00Lean_Elab_Command_elabElabRulesAux_spec__1(x_1, x_2);
lean_dec(x_2);
lean_dec_ref(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_mkIdentFromRef___at___00Lean_Elab_Command_elabElabRulesAux_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint8_t x_6; lean_object* x_7; 
x_6 = lean_unbox(x_2);
x_7 = l_Lean_mkIdentFromRef___at___00Lean_Elab_Command_elabElabRulesAux_spec__0(x_1, x_6, x_3, x_4);
lean_dec(x_4);
lean_dec_ref(x_3);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3(x_1, x_2, x_3, x_4);
lean_dec(x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_5);
lean_dec(x_2);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_mkIdentFromRef___at___00Lean_Elab_Command_elabElabRulesAux_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; lean_object* x_6; 
x_5 = lean_unbox(x_2);
x_6 = l_Lean_mkIdentFromRef___at___00Lean_Elab_Command_elabElabRulesAux_spec__0___redArg(x_1, x_5, x_3);
lean_dec_ref(x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Option_get___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4_spec__4___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lean_Option_get___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4_spec__4(x_1, x_2);
lean_dec_ref(x_2);
lean_dec(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_getMainModule___at___00Lean_Elab_Command_elabElabRulesAux_spec__1___redArg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_getMainModule___at___00Lean_Elab_Command_elabElabRulesAux_spec__1___redArg(x_1);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3___redArg(x_1, x_2, x_3, x_4);
lean_dec(x_4);
lean_dec(x_1);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Command_elabElabRulesAux_spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
size_t x_8; size_t x_9; lean_object* x_10; 
x_8 = lean_unbox_usize(x_5);
lean_dec(x_5);
x_9 = lean_unbox_usize(x_6);
lean_dec(x_6);
x_10 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Command_elabElabRulesAux_spec__9(x_1, x_2, x_3, x_4, x_8, x_9, x_7);
lean_dec_ref(x_7);
lean_dec_ref(x_4);
lean_dec_ref(x_2);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3___redArg(x_1, x_2, x_3);
lean_dec(x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg(x_1, x_2, x_3);
lean_dec(x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg(x_1, x_2);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
size_t x_8; size_t x_9; lean_object* x_10; 
x_8 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_9 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_10 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10(x_1, x_8, x_9, x_4, x_5, x_6);
lean_dec(x_6);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElabRulesAux___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
x_8 = l_Lean_Elab_Command_elabElabRulesAux___lam__0(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_6);
lean_dec_ref(x_5);
lean_dec(x_3);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElabRulesAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11; 
x_11 = l_Lean_Elab_Command_elabElabRulesAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_9);
lean_dec(x_5);
lean_dec(x_2);
return x_11;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRules___lam__0___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("<=", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRules___lam__0___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("(", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRules___lam__0___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("kind", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRules___lam__0___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(")", 1, 1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElabRules___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) {
_start:
{
lean_object* x_17; 
x_17 = l_Lean_Elab_Command_getRef___redArg(x_14);
if (lean_obj_tag(x_17) == 0)
{
lean_object* x_18; lean_object* x_19; 
x_18 = lean_ctor_get(x_17, 0);
lean_inc(x_18);
lean_dec_ref(x_17);
x_19 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_14);
if (lean_obj_tag(x_19) == 0)
{
lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_112; 
if (lean_is_exclusive(x_19)) {
 lean_ctor_release(x_19, 0);
 x_20 = x_19;
} else {
 lean_dec_ref(x_19);
 x_20 = lean_box(0);
}
x_21 = lean_ctor_get(x_14, 5);
x_22 = 0;
x_23 = l_Lean_SourceInfo_fromRef(x_18, x_22);
lean_dec(x_18);
if (lean_obj_tag(x_21) == 0)
{
lean_object* x_119; 
x_119 = l_Lean_getMainModule___at___00Lean_Elab_Command_elabElabRulesAux_spec__1___redArg(x_15);
lean_dec_ref(x_119);
x_112 = lean_box(0);
goto block_118;
}
else
{
x_112 = lean_box(0);
goto block_118;
}
block_40:
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; 
lean_inc_ref(x_30);
x_33 = l_Array_append___redArg(x_30, x_32);
lean_dec_ref(x_32);
lean_inc(x_28);
lean_inc(x_23);
x_34 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_34, 0, x_23);
lean_ctor_set(x_34, 1, x_28);
lean_ctor_set(x_34, 2, x_33);
x_35 = l_Array_append___redArg(x_30, x_13);
lean_inc(x_23);
x_36 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_36, 0, x_23);
lean_ctor_set(x_36, 1, x_28);
lean_ctor_set(x_36, 2, x_35);
lean_inc(x_23);
x_37 = l_Lean_Syntax_node1(x_23, x_1, x_36);
x_38 = l_Lean_Syntax_node8(x_23, x_2, x_31, x_27, x_3, x_29, x_26, x_25, x_34, x_37);
if (lean_is_scalar(x_20)) {
 x_39 = lean_alloc_ctor(0, 1, 0);
} else {
 x_39 = x_20;
}
lean_ctor_set(x_39, 0, x_38);
return x_39;
}
block_56:
{
lean_object* x_49; lean_object* x_50; 
lean_inc_ref(x_46);
x_49 = l_Array_append___redArg(x_46, x_48);
lean_dec_ref(x_48);
lean_inc(x_44);
lean_inc(x_23);
x_50 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_50, 0, x_23);
lean_ctor_set(x_50, 1, x_44);
lean_ctor_set(x_50, 2, x_49);
if (lean_obj_tag(x_4) == 1)
{
lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; 
x_51 = lean_ctor_get(x_4, 0);
lean_inc(x_51);
lean_dec_ref(x_4);
x_52 = l_Lean_Elab_Command_elabElabRules___lam__0___closed__0;
lean_inc(x_23);
x_53 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_53, 0, x_23);
lean_ctor_set(x_53, 1, x_52);
x_54 = l_Array_mkArray2___redArg(x_53, x_51);
x_24 = lean_box(0);
x_25 = x_50;
x_26 = x_43;
x_27 = x_42;
x_28 = x_44;
x_29 = x_45;
x_30 = x_46;
x_31 = x_47;
x_32 = x_54;
goto block_40;
}
else
{
lean_object* x_55; 
lean_dec(x_4);
x_55 = l_Lean_Elab_Command_elabElabRulesAux___closed__33;
x_24 = lean_box(0);
x_25 = x_50;
x_26 = x_43;
x_27 = x_42;
x_28 = x_44;
x_29 = x_45;
x_30 = x_46;
x_31 = x_47;
x_32 = x_55;
goto block_40;
}
}
block_71:
{
lean_object* x_64; lean_object* x_65; 
lean_inc_ref(x_61);
x_64 = l_Array_append___redArg(x_61, x_63);
lean_dec_ref(x_63);
lean_inc(x_59);
lean_inc(x_23);
x_65 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_65, 0, x_23);
lean_ctor_set(x_65, 1, x_59);
lean_ctor_set(x_65, 2, x_64);
if (lean_obj_tag(x_5) == 1)
{
lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; 
x_66 = lean_ctor_get(x_5, 0);
lean_inc(x_66);
lean_dec_ref(x_5);
x_67 = l_Lean_Elab_Command_elabElabRulesAux___closed__7;
lean_inc(x_23);
x_68 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_68, 0, x_23);
lean_ctor_set(x_68, 1, x_67);
x_69 = l_Array_mkArray2___redArg(x_68, x_66);
x_41 = lean_box(0);
x_42 = x_58;
x_43 = x_65;
x_44 = x_59;
x_45 = x_60;
x_46 = x_61;
x_47 = x_62;
x_48 = x_69;
goto block_56;
}
else
{
lean_object* x_70; 
lean_dec(x_5);
x_70 = l_Lean_Elab_Command_elabElabRulesAux___closed__33;
x_41 = lean_box(0);
x_42 = x_58;
x_43 = x_65;
x_44 = x_59;
x_45 = x_60;
x_46 = x_61;
x_47 = x_62;
x_48 = x_70;
goto block_56;
}
}
block_92:
{
lean_object* x_77; lean_object* x_78; lean_object* x_79; 
lean_inc_ref(x_74);
x_77 = l_Array_append___redArg(x_74, x_76);
lean_dec_ref(x_76);
lean_inc(x_73);
lean_inc(x_23);
x_78 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_78, 0, x_23);
lean_ctor_set(x_78, 1, x_73);
lean_ctor_set(x_78, 2, x_77);
lean_inc(x_23);
x_79 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_79, 0, x_23);
lean_ctor_set(x_79, 1, x_6);
if (lean_obj_tag(x_12) == 0)
{
lean_object* x_80; 
x_80 = l_Lean_Elab_Command_elabElabRulesAux___closed__33;
x_57 = lean_box(0);
x_58 = x_78;
x_59 = x_73;
x_60 = x_79;
x_61 = x_74;
x_62 = x_75;
x_63 = x_80;
goto block_71;
}
else
{
lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; 
x_81 = lean_ctor_get(x_12, 0);
lean_inc(x_81);
lean_dec_ref(x_12);
x_82 = lean_mk_syntax_ident(x_81);
x_83 = l_Lean_Elab_Command_elabElabRules___lam__0___closed__1;
lean_inc(x_23);
x_84 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_84, 0, x_23);
lean_ctor_set(x_84, 1, x_83);
x_85 = l_Lean_Elab_Command_elabElabRules___lam__0___closed__2;
lean_inc(x_23);
x_86 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_86, 0, x_23);
lean_ctor_set(x_86, 1, x_85);
x_87 = l_Lean_Elab_Command_elabElabRulesAux___closed__11;
lean_inc(x_23);
x_88 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_88, 0, x_23);
lean_ctor_set(x_88, 1, x_87);
x_89 = l_Lean_Elab_Command_elabElabRules___lam__0___closed__3;
lean_inc(x_23);
x_90 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_90, 0, x_23);
lean_ctor_set(x_90, 1, x_89);
x_91 = l_Array_mkArray5___redArg(x_84, x_86, x_88, x_82, x_90);
x_57 = lean_box(0);
x_58 = x_78;
x_59 = x_73;
x_60 = x_79;
x_61 = x_74;
x_62 = x_75;
x_63 = x_91;
goto block_71;
}
}
block_111:
{
lean_object* x_97; lean_object* x_98; 
lean_inc_ref(x_95);
x_97 = l_Array_append___redArg(x_95, x_96);
lean_dec_ref(x_96);
lean_inc(x_94);
lean_inc(x_23);
x_98 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_98, 0, x_23);
lean_ctor_set(x_98, 1, x_94);
lean_ctor_set(x_98, 2, x_97);
if (lean_obj_tag(x_7) == 1)
{
lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; 
x_99 = lean_ctor_get(x_7, 0);
x_100 = l_Lean_Elab_Command_elabElabRulesAux___closed__0;
x_101 = l_Lean_Name_mkStr4(x_8, x_9, x_10, x_100);
x_102 = l_Lean_Elab_Command_elabElabRulesAux___closed__1;
lean_inc(x_23);
x_103 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_103, 0, x_23);
lean_ctor_set(x_103, 1, x_102);
lean_inc_ref(x_95);
x_104 = l_Array_append___redArg(x_95, x_99);
lean_inc(x_94);
lean_inc(x_23);
x_105 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_105, 0, x_23);
lean_ctor_set(x_105, 1, x_94);
lean_ctor_set(x_105, 2, x_104);
x_106 = l_Lean_Elab_Command_elabElabRulesAux___closed__3;
lean_inc(x_23);
x_107 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_107, 0, x_23);
lean_ctor_set(x_107, 1, x_106);
lean_inc(x_23);
x_108 = l_Lean_Syntax_node3(x_23, x_101, x_103, x_105, x_107);
x_109 = l_Array_mkArray1___redArg(x_108);
x_72 = lean_box(0);
x_73 = x_94;
x_74 = x_95;
x_75 = x_98;
x_76 = x_109;
goto block_92;
}
else
{
lean_object* x_110; 
lean_dec_ref(x_10);
lean_dec_ref(x_9);
lean_dec_ref(x_8);
x_110 = l_Lean_Elab_Command_elabElabRulesAux___closed__33;
x_72 = lean_box(0);
x_73 = x_94;
x_74 = x_95;
x_75 = x_98;
x_76 = x_110;
goto block_92;
}
}
block_118:
{
lean_object* x_113; lean_object* x_114; 
x_113 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__11;
x_114 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__12;
if (lean_obj_tag(x_11) == 1)
{
lean_object* x_115; lean_object* x_116; 
x_115 = lean_ctor_get(x_11, 0);
lean_inc(x_115);
lean_dec_ref(x_11);
x_116 = l_Array_mkArray1___redArg(x_115);
x_93 = lean_box(0);
x_94 = x_113;
x_95 = x_114;
x_96 = x_116;
goto block_111;
}
else
{
lean_object* x_117; 
lean_dec(x_11);
x_117 = l_Lean_Elab_Command_elabElabRulesAux___closed__33;
x_93 = lean_box(0);
x_94 = x_113;
x_95 = x_114;
x_96 = x_117;
goto block_111;
}
}
}
else
{
uint8_t x_120; 
lean_dec(x_18);
lean_dec(x_12);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec_ref(x_9);
lean_dec_ref(x_8);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_120 = !lean_is_exclusive(x_19);
if (x_120 == 0)
{
return x_19;
}
else
{
lean_object* x_121; lean_object* x_122; 
x_121 = lean_ctor_get(x_19, 0);
lean_inc(x_121);
lean_dec(x_19);
x_122 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_122, 0, x_121);
return x_122;
}
}
}
else
{
uint8_t x_123; 
lean_dec(x_12);
lean_dec(x_11);
lean_dec_ref(x_10);
lean_dec_ref(x_9);
lean_dec_ref(x_8);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_123 = !lean_is_exclusive(x_17);
if (x_123 == 0)
{
return x_17;
}
else
{
lean_object* x_124; lean_object* x_125; 
x_124 = lean_ctor_get(x_17, 0);
lean_inc(x_124);
lean_dec(x_17);
x_125 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_125, 0, x_124);
return x_125;
}
}
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRules___lam__1___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elab_rules", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRules___lam__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabElabRules___lam__1___closed__0;
x_2 = l_Lean_Elab_Command_elabElabRulesAux___closed__30;
x_3 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__5;
x_4 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__4;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRules___lam__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabElabRulesAux___closed__22;
x_2 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__6;
x_3 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__5;
x_4 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__4;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRules___lam__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("attrKind", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRules___lam__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabElabRules___lam__1___closed__3;
x_2 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__6;
x_3 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__5;
x_4 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__4;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRules___lam__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabElabRulesAux___closed__0;
x_2 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__6;
x_3 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__5;
x_4 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__4;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRules___lam__1___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("docComment", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRules___lam__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabElabRules___lam__1___closed__6;
x_2 = l_Lean_Elab_Command_elabElabRulesAux___closed__30;
x_3 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__5;
x_4 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__4;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElabRules___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) {
_start:
{
lean_object* x_17; 
x_17 = l_Lean_Elab_Command_elabElabRules___lam__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15);
lean_dec(x_15);
lean_dec_ref(x_14);
lean_dec_ref(x_13);
lean_dec(x_7);
return x_17;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElabRules___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_5 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__4;
x_6 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__5;
x_7 = l_Lean_Elab_Command_elabElabRules___lam__1___closed__0;
x_8 = l_Lean_Elab_Command_elabElabRules___lam__1___closed__1;
lean_inc(x_1);
x_9 = l_Lean_Syntax_isOfKind(x_1, x_8);
if (x_9 == 0)
{
lean_object* x_10; 
lean_dec(x_3);
lean_dec_ref(x_2);
lean_dec(x_1);
x_10 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
return x_10;
}
else
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_155; uint8_t x_156; 
x_11 = lean_unsigned_to_nat(0u);
x_155 = l_Lean_Syntax_getArg(x_1, x_11);
x_156 = l_Lean_Syntax_isNone(x_155);
if (x_156 == 0)
{
lean_object* x_157; uint8_t x_158; 
x_157 = lean_unsigned_to_nat(1u);
lean_inc(x_155);
x_158 = l_Lean_Syntax_matchesNull(x_155, x_157);
if (x_158 == 0)
{
lean_object* x_159; 
lean_dec(x_155);
lean_dec(x_3);
lean_dec_ref(x_2);
lean_dec(x_1);
x_159 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
return x_159;
}
else
{
lean_object* x_160; lean_object* x_161; uint8_t x_162; 
x_160 = l_Lean_Syntax_getArg(x_155, x_11);
lean_dec(x_155);
x_161 = l_Lean_Elab_Command_elabElabRules___lam__1___closed__7;
lean_inc(x_160);
x_162 = l_Lean_Syntax_isOfKind(x_160, x_161);
if (x_162 == 0)
{
lean_object* x_163; 
lean_dec(x_160);
lean_dec(x_3);
lean_dec_ref(x_2);
lean_dec(x_1);
x_163 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
return x_163;
}
else
{
lean_object* x_164; 
x_164 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_164, 0, x_160);
x_137 = x_164;
x_138 = x_2;
x_139 = x_3;
x_140 = lean_box(0);
goto block_154;
}
}
}
else
{
lean_object* x_165; 
lean_dec(x_155);
x_165 = lean_box(0);
x_137 = x_165;
x_138 = x_2;
x_139 = x_3;
x_140 = lean_box(0);
goto block_154;
}
block_36:
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; 
x_20 = lean_unsigned_to_nat(7u);
x_21 = l_Lean_Syntax_getArg(x_1, x_20);
lean_dec(x_1);
x_22 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__6;
x_23 = l_Lean_Elab_Command_elabElabRules___lam__1___closed__2;
lean_inc(x_21);
x_24 = l_Lean_Syntax_isOfKind(x_21, x_23);
if (x_24 == 0)
{
lean_object* x_25; 
lean_dec(x_21);
lean_dec(x_19);
lean_dec(x_17);
lean_dec_ref(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
x_25 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
return x_25;
}
else
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_26 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabElabRules___lam__0___boxed), 16, 11);
lean_closure_set(x_26, 0, x_23);
lean_closure_set(x_26, 1, x_8);
lean_closure_set(x_26, 2, x_14);
lean_closure_set(x_26, 3, x_19);
lean_closure_set(x_26, 4, x_13);
lean_closure_set(x_26, 5, x_7);
lean_closure_set(x_26, 6, x_12);
lean_closure_set(x_26, 7, x_5);
lean_closure_set(x_26, 8, x_6);
lean_closure_set(x_26, 9, x_22);
lean_closure_set(x_26, 10, x_17);
x_27 = l_Lean_Syntax_getArg(x_21, x_11);
lean_dec(x_21);
x_28 = l_Lean_Syntax_getArgs(x_27);
lean_dec(x_27);
x_29 = l_Lean_Elab_Command_expandNoKindMacroRulesAux(x_28, x_7, x_26, x_16, x_15);
lean_dec_ref(x_28);
if (lean_obj_tag(x_29) == 0)
{
uint8_t x_30; 
x_30 = !lean_is_exclusive(x_29);
if (x_30 == 0)
{
return x_29;
}
else
{
lean_object* x_31; lean_object* x_32; 
x_31 = lean_ctor_get(x_29, 0);
lean_inc(x_31);
lean_dec(x_29);
x_32 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_32, 0, x_31);
return x_32;
}
}
else
{
uint8_t x_33; 
x_33 = !lean_is_exclusive(x_29);
if (x_33 == 0)
{
return x_29;
}
else
{
lean_object* x_34; lean_object* x_35; 
x_34 = lean_ctor_get(x_29, 0);
lean_inc(x_34);
lean_dec(x_29);
x_35 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_35, 0, x_34);
return x_35;
}
}
}
}
block_54:
{
lean_object* x_46; lean_object* x_47; uint8_t x_48; 
x_46 = lean_unsigned_to_nat(6u);
x_47 = l_Lean_Syntax_getArg(x_1, x_46);
x_48 = l_Lean_Syntax_isNone(x_47);
if (x_48 == 0)
{
uint8_t x_49; 
lean_inc(x_47);
x_49 = l_Lean_Syntax_matchesNull(x_47, x_40);
if (x_49 == 0)
{
lean_object* x_50; 
lean_dec(x_47);
lean_dec(x_44);
lean_dec_ref(x_43);
lean_dec(x_42);
lean_dec(x_39);
lean_dec(x_38);
lean_dec(x_37);
lean_dec(x_1);
x_50 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
return x_50;
}
else
{
lean_object* x_51; lean_object* x_52; 
x_51 = l_Lean_Syntax_getArg(x_47, x_41);
lean_dec(x_47);
x_52 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_52, 0, x_51);
x_12 = x_37;
x_13 = x_42;
x_14 = x_38;
x_15 = x_44;
x_16 = x_43;
x_17 = x_39;
x_18 = lean_box(0);
x_19 = x_52;
goto block_36;
}
}
else
{
lean_object* x_53; 
lean_dec(x_47);
x_53 = lean_box(0);
x_12 = x_37;
x_13 = x_42;
x_14 = x_38;
x_15 = x_44;
x_16 = x_43;
x_17 = x_39;
x_18 = lean_box(0);
x_19 = x_53;
goto block_36;
}
}
block_80:
{
lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; 
x_65 = lean_unsigned_to_nat(7u);
x_66 = l_Lean_Syntax_getArg(x_1, x_65);
lean_dec(x_1);
x_67 = l_Lean_Elab_Command_elabElabRulesAux___closed__22;
x_68 = l_Lean_Name_mkStr4(x_5, x_6, x_60, x_67);
lean_inc(x_66);
x_69 = l_Lean_Syntax_isOfKind(x_66, x_68);
lean_dec(x_68);
if (x_69 == 0)
{
lean_object* x_70; 
lean_dec(x_66);
lean_dec(x_63);
lean_dec_ref(x_62);
lean_dec(x_61);
lean_dec(x_59);
lean_dec(x_58);
lean_dec(x_57);
lean_dec(x_56);
lean_dec(x_55);
x_70 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
return x_70;
}
else
{
lean_object* x_71; lean_object* x_72; 
x_71 = l_Lean_TSyntax_getId(x_59);
lean_dec(x_59);
lean_inc_ref(x_62);
x_72 = l_Lean_Elab_Command_resolveSyntaxKind(x_71, x_62, x_63);
if (lean_obj_tag(x_72) == 0)
{
lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; 
x_73 = lean_ctor_get(x_72, 0);
lean_inc(x_73);
lean_dec_ref(x_72);
x_74 = l_Lean_Syntax_getArg(x_66, x_11);
lean_dec(x_66);
x_75 = l_Lean_Syntax_getArgs(x_74);
lean_dec(x_74);
x_76 = l_Lean_Elab_Command_elabElabRulesAux(x_57, x_56, x_55, x_73, x_58, x_61, x_75, x_62, x_63);
lean_dec(x_63);
lean_dec(x_58);
lean_dec(x_56);
return x_76;
}
else
{
uint8_t x_77; 
lean_dec(x_66);
lean_dec(x_63);
lean_dec_ref(x_62);
lean_dec(x_61);
lean_dec(x_58);
lean_dec(x_57);
lean_dec(x_56);
lean_dec(x_55);
x_77 = !lean_is_exclusive(x_72);
if (x_77 == 0)
{
return x_72;
}
else
{
lean_object* x_78; lean_object* x_79; 
x_78 = lean_ctor_get(x_72, 0);
lean_inc(x_78);
lean_dec(x_72);
x_79 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_79, 0, x_78);
return x_79;
}
}
}
}
block_100:
{
lean_object* x_92; lean_object* x_93; uint8_t x_94; 
x_92 = lean_unsigned_to_nat(6u);
x_93 = l_Lean_Syntax_getArg(x_1, x_92);
x_94 = l_Lean_Syntax_isNone(x_93);
if (x_94 == 0)
{
uint8_t x_95; 
lean_inc(x_93);
x_95 = l_Lean_Syntax_matchesNull(x_93, x_81);
if (x_95 == 0)
{
lean_object* x_96; 
lean_dec(x_93);
lean_dec(x_90);
lean_dec_ref(x_89);
lean_dec(x_88);
lean_dec(x_87);
lean_dec_ref(x_86);
lean_dec(x_85);
lean_dec(x_84);
lean_dec(x_83);
lean_dec(x_1);
x_96 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
return x_96;
}
else
{
lean_object* x_97; lean_object* x_98; 
x_97 = l_Lean_Syntax_getArg(x_93, x_82);
lean_dec(x_93);
x_98 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_98, 0, x_97);
x_55 = x_83;
x_56 = x_84;
x_57 = x_85;
x_58 = x_88;
x_59 = x_87;
x_60 = x_86;
x_61 = x_98;
x_62 = x_89;
x_63 = x_90;
x_64 = lean_box(0);
goto block_80;
}
}
else
{
lean_object* x_99; 
lean_dec(x_93);
x_99 = lean_box(0);
x_55 = x_83;
x_56 = x_84;
x_57 = x_85;
x_58 = x_88;
x_59 = x_87;
x_60 = x_86;
x_61 = x_99;
x_62 = x_89;
x_63 = x_90;
x_64 = lean_box(0);
goto block_80;
}
}
block_136:
{
lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; 
x_107 = lean_unsigned_to_nat(2u);
x_108 = l_Lean_Syntax_getArg(x_1, x_107);
x_109 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__6;
x_110 = l_Lean_Elab_Command_elabElabRules___lam__1___closed__4;
lean_inc(x_108);
x_111 = l_Lean_Syntax_isOfKind(x_108, x_110);
if (x_111 == 0)
{
lean_object* x_112; 
lean_dec(x_108);
lean_dec(x_106);
lean_dec_ref(x_104);
lean_dec(x_103);
lean_dec(x_101);
lean_dec(x_1);
x_112 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
return x_112;
}
else
{
lean_object* x_113; lean_object* x_114; uint8_t x_115; 
x_113 = lean_unsigned_to_nat(4u);
x_114 = l_Lean_Syntax_getArg(x_1, x_113);
lean_inc(x_114);
x_115 = l_Lean_Syntax_matchesNull(x_114, x_11);
if (x_115 == 0)
{
lean_object* x_116; uint8_t x_117; 
x_116 = lean_unsigned_to_nat(5u);
lean_inc(x_114);
x_117 = l_Lean_Syntax_matchesNull(x_114, x_116);
if (x_117 == 0)
{
lean_object* x_118; 
lean_dec(x_114);
lean_dec(x_108);
lean_dec(x_106);
lean_dec_ref(x_104);
lean_dec(x_103);
lean_dec(x_101);
lean_dec(x_1);
x_118 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
return x_118;
}
else
{
lean_object* x_119; lean_object* x_120; lean_object* x_121; uint8_t x_122; 
x_119 = lean_unsigned_to_nat(3u);
x_120 = l_Lean_Syntax_getArg(x_114, x_119);
lean_dec(x_114);
x_121 = l_Lean_Syntax_getArg(x_1, x_116);
x_122 = l_Lean_Syntax_isNone(x_121);
if (x_122 == 0)
{
uint8_t x_123; 
lean_inc(x_121);
x_123 = l_Lean_Syntax_matchesNull(x_121, x_107);
if (x_123 == 0)
{
lean_object* x_124; 
lean_dec(x_121);
lean_dec(x_120);
lean_dec(x_108);
lean_dec(x_106);
lean_dec_ref(x_104);
lean_dec(x_103);
lean_dec(x_101);
lean_dec(x_1);
x_124 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
return x_124;
}
else
{
lean_object* x_125; lean_object* x_126; 
x_125 = l_Lean_Syntax_getArg(x_121, x_105);
lean_dec(x_121);
x_126 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_126, 0, x_125);
x_81 = x_107;
x_82 = x_105;
x_83 = x_108;
x_84 = x_106;
x_85 = x_101;
x_86 = x_109;
x_87 = x_120;
x_88 = x_126;
x_89 = x_104;
x_90 = x_103;
x_91 = lean_box(0);
goto block_100;
}
}
else
{
lean_object* x_127; 
lean_dec(x_121);
x_127 = lean_box(0);
x_81 = x_107;
x_82 = x_105;
x_83 = x_108;
x_84 = x_106;
x_85 = x_101;
x_86 = x_109;
x_87 = x_120;
x_88 = x_127;
x_89 = x_104;
x_90 = x_103;
x_91 = lean_box(0);
goto block_100;
}
}
}
else
{
lean_object* x_128; lean_object* x_129; uint8_t x_130; 
lean_dec(x_114);
x_128 = lean_unsigned_to_nat(5u);
x_129 = l_Lean_Syntax_getArg(x_1, x_128);
x_130 = l_Lean_Syntax_isNone(x_129);
if (x_130 == 0)
{
uint8_t x_131; 
lean_inc(x_129);
x_131 = l_Lean_Syntax_matchesNull(x_129, x_107);
if (x_131 == 0)
{
lean_object* x_132; 
lean_dec(x_129);
lean_dec(x_108);
lean_dec(x_106);
lean_dec_ref(x_104);
lean_dec(x_103);
lean_dec(x_101);
lean_dec(x_1);
x_132 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
return x_132;
}
else
{
lean_object* x_133; lean_object* x_134; 
x_133 = l_Lean_Syntax_getArg(x_129, x_105);
lean_dec(x_129);
x_134 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_134, 0, x_133);
x_37 = x_106;
x_38 = x_108;
x_39 = x_101;
x_40 = x_107;
x_41 = x_105;
x_42 = x_134;
x_43 = x_104;
x_44 = x_103;
x_45 = lean_box(0);
goto block_54;
}
}
else
{
lean_object* x_135; 
lean_dec(x_129);
x_135 = lean_box(0);
x_37 = x_106;
x_38 = x_108;
x_39 = x_101;
x_40 = x_107;
x_41 = x_105;
x_42 = x_135;
x_43 = x_104;
x_44 = x_103;
x_45 = lean_box(0);
goto block_54;
}
}
}
}
block_154:
{
lean_object* x_141; lean_object* x_142; uint8_t x_143; 
x_141 = lean_unsigned_to_nat(1u);
x_142 = l_Lean_Syntax_getArg(x_1, x_141);
x_143 = l_Lean_Syntax_isNone(x_142);
if (x_143 == 0)
{
uint8_t x_144; 
lean_inc(x_142);
x_144 = l_Lean_Syntax_matchesNull(x_142, x_141);
if (x_144 == 0)
{
lean_object* x_145; 
lean_dec(x_142);
lean_dec(x_139);
lean_dec_ref(x_138);
lean_dec(x_137);
lean_dec(x_1);
x_145 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
return x_145;
}
else
{
lean_object* x_146; lean_object* x_147; uint8_t x_148; 
x_146 = l_Lean_Syntax_getArg(x_142, x_11);
lean_dec(x_142);
x_147 = l_Lean_Elab_Command_elabElabRules___lam__1___closed__5;
lean_inc(x_146);
x_148 = l_Lean_Syntax_isOfKind(x_146, x_147);
if (x_148 == 0)
{
lean_object* x_149; 
lean_dec(x_146);
lean_dec(x_139);
lean_dec_ref(x_138);
lean_dec(x_137);
lean_dec(x_1);
x_149 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
return x_149;
}
else
{
lean_object* x_150; lean_object* x_151; lean_object* x_152; 
x_150 = l_Lean_Syntax_getArg(x_146, x_141);
lean_dec(x_146);
x_151 = l_Lean_Syntax_getArgs(x_150);
lean_dec(x_150);
x_152 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_152, 0, x_151);
x_101 = x_137;
x_102 = lean_box(0);
x_103 = x_139;
x_104 = x_138;
x_105 = x_141;
x_106 = x_152;
goto block_136;
}
}
}
else
{
lean_object* x_153; 
lean_dec(x_142);
x_153 = lean_box(0);
x_101 = x_137;
x_102 = lean_box(0);
x_103 = x_139;
x_104 = x_138;
x_105 = x_141;
x_106 = x_153;
goto block_136;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElabRules___lam__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Elab_Command_elabElabRules___lam__1(x_1, x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElabRules(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabElabRules___lam__1___boxed), 4, 0);
x_6 = l_Lean_Elab_Command_adaptExpander(x_5, x_1, x_2, x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElabRules___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Elab_Command_elabElabRules(x_1, x_2, x_3);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules__1___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Elab_Command_commandElabAttribute;
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elabElabRules", 13, 13);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules__1___closed__1;
x_2 = l_Lean_Elab_Command_elabElabRulesAux___closed__30;
x_3 = l_Lean_Elab_Command_elabElabRulesAux___closed__29;
x_4 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__4;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules__1() {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules__1___closed__0;
x_3 = l_Lean_Elab_Command_elabElabRules___lam__1___closed__1;
x_4 = l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules__1___closed__2;
x_5 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabElabRules___boxed), 4, 0);
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___redArg(x_2, x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules__1___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules__1();
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(37u);
x_2 = lean_unsigned_to_nat(74u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(32u);
x_2 = lean_unsigned_to_nat(81u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = lean_unsigned_to_nat(32u);
x_2 = l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__1;
x_3 = lean_unsigned_to_nat(37u);
x_4 = l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__0;
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_4);
lean_ctor_set(x_5, 1, x_3);
lean_ctor_set(x_5, 2, x_2);
lean_ctor_set(x_5, 3, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(41u);
x_2 = lean_unsigned_to_nat(74u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(54u);
x_2 = lean_unsigned_to_nat(74u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = lean_unsigned_to_nat(54u);
x_2 = l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__4;
x_3 = lean_unsigned_to_nat(41u);
x_4 = l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__3;
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_4);
lean_ctor_set(x_5, 1, x_3);
lean_ctor_set(x_5, 2, x_2);
lean_ctor_set(x_5, 3, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__5;
x_2 = l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__2;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3() {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules__1___closed__2;
x_3 = l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__6;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3();
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; uint8_t x_9; 
x_5 = 0;
x_6 = l_Lean_Environment_setExporting(x_1, x_5);
lean_inc(x_2);
x_7 = l_Lean_mkPrivateName(x_6, x_2);
x_8 = 1;
lean_inc_ref(x_6);
x_9 = l_Lean_Environment_contains(x_6, x_7, x_8);
if (x_9 == 0)
{
lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; 
x_10 = l_Lean_privateToUserName(x_2);
x_11 = l_Lean_Environment_contains(x_6, x_10, x_8);
x_12 = lean_box(x_11);
x_13 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_13, 0, x_12);
lean_ctor_set(x_13, 1, x_4);
return x_13;
}
else
{
lean_object* x_14; lean_object* x_15; 
lean_dec_ref(x_6);
lean_dec(x_2);
x_14 = lean_box(x_9);
x_15 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_15, 0, x_14);
lean_ctor_set(x_15, 1, x_4);
return x_15;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___lam__0(x_1, x_2, x_3, x_4);
lean_dec_ref(x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_liftExcept___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__2___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_3; lean_object* x_4; 
x_3 = lean_ctor_get(x_1, 0);
lean_inc(x_3);
x_4 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
return x_4;
}
else
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_ctor_get(x_1, 0);
lean_inc(x_5);
x_6 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_6, 0, x_5);
lean_ctor_set(x_6, 1, x_2);
return x_6;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Elab_expandMacroImpl_x3f(x_1, x_2, x_3, x_4);
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_6; 
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
if (lean_obj_tag(x_6) == 0)
{
uint8_t x_7; 
x_7 = !lean_is_exclusive(x_5);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; 
x_8 = lean_ctor_get(x_5, 0);
lean_dec(x_8);
x_9 = lean_box(0);
lean_ctor_set(x_5, 0, x_9);
return x_5;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_10 = lean_ctor_get(x_5, 1);
lean_inc(x_10);
lean_dec(x_5);
x_11 = lean_box(0);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_11);
lean_ctor_set(x_12, 1, x_10);
return x_12;
}
}
else
{
uint8_t x_13; 
x_13 = !lean_is_exclusive(x_6);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; 
x_14 = lean_ctor_get(x_6, 0);
x_15 = lean_ctor_get(x_14, 1);
lean_inc(x_15);
lean_dec(x_14);
if (lean_obj_tag(x_15) == 0)
{
lean_object* x_16; uint8_t x_17; 
lean_free_object(x_6);
x_16 = lean_ctor_get(x_5, 1);
lean_inc(x_16);
lean_dec_ref(x_5);
x_17 = !lean_is_exclusive(x_15);
if (x_17 == 0)
{
lean_object* x_18; 
x_18 = l_liftExcept___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__2___redArg(x_15, x_16);
lean_dec_ref(x_15);
return x_18;
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_15, 0);
lean_inc(x_19);
lean_dec(x_15);
x_20 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_20, 0, x_19);
x_21 = l_liftExcept___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__2___redArg(x_20, x_16);
lean_dec_ref(x_20);
return x_21;
}
}
else
{
lean_object* x_22; uint8_t x_23; 
x_22 = lean_ctor_get(x_5, 1);
lean_inc(x_22);
lean_dec_ref(x_5);
x_23 = !lean_is_exclusive(x_15);
if (x_23 == 0)
{
lean_object* x_24; lean_object* x_25; 
x_24 = lean_ctor_get(x_15, 0);
lean_ctor_set(x_6, 0, x_24);
lean_ctor_set(x_15, 0, x_6);
x_25 = l_liftExcept___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__2___redArg(x_15, x_22);
lean_dec_ref(x_15);
return x_25;
}
else
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; 
x_26 = lean_ctor_get(x_15, 0);
lean_inc(x_26);
lean_dec(x_15);
lean_ctor_set(x_6, 0, x_26);
x_27 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_27, 0, x_6);
x_28 = l_liftExcept___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__2___redArg(x_27, x_22);
lean_dec_ref(x_27);
return x_28;
}
}
}
else
{
lean_object* x_29; lean_object* x_30; 
x_29 = lean_ctor_get(x_6, 0);
lean_inc(x_29);
lean_dec(x_6);
x_30 = lean_ctor_get(x_29, 1);
lean_inc(x_30);
lean_dec(x_29);
if (lean_obj_tag(x_30) == 0)
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; 
x_31 = lean_ctor_get(x_5, 1);
lean_inc(x_31);
lean_dec_ref(x_5);
x_32 = lean_ctor_get(x_30, 0);
lean_inc(x_32);
if (lean_is_exclusive(x_30)) {
 lean_ctor_release(x_30, 0);
 x_33 = x_30;
} else {
 lean_dec_ref(x_30);
 x_33 = lean_box(0);
}
if (lean_is_scalar(x_33)) {
 x_34 = lean_alloc_ctor(0, 1, 0);
} else {
 x_34 = x_33;
}
lean_ctor_set(x_34, 0, x_32);
x_35 = l_liftExcept___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__2___redArg(x_34, x_31);
lean_dec_ref(x_34);
return x_35;
}
else
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; 
x_36 = lean_ctor_get(x_5, 1);
lean_inc(x_36);
lean_dec_ref(x_5);
x_37 = lean_ctor_get(x_30, 0);
lean_inc(x_37);
if (lean_is_exclusive(x_30)) {
 lean_ctor_release(x_30, 0);
 x_38 = x_30;
} else {
 lean_dec_ref(x_30);
 x_38 = lean_box(0);
}
x_39 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_39, 0, x_37);
if (lean_is_scalar(x_38)) {
 x_40 = lean_alloc_ctor(1, 1, 0);
} else {
 x_40 = x_38;
}
lean_ctor_set(x_40, 0, x_39);
x_41 = l_liftExcept___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__2___redArg(x_40, x_36);
lean_dec_ref(x_40);
return x_41;
}
}
}
}
else
{
uint8_t x_42; 
x_42 = !lean_is_exclusive(x_5);
if (x_42 == 0)
{
return x_5;
}
else
{
lean_object* x_43; lean_object* x_44; lean_object* x_45; 
x_43 = lean_ctor_get(x_5, 0);
x_44 = lean_ctor_get(x_5, 1);
lean_inc(x_44);
lean_inc(x_43);
lean_dec(x_5);
x_45 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_45, 0, x_43);
lean_ctor_set(x_45, 1, x_44);
return x_45;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___lam__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___lam__1(x_1, x_2, x_3, x_4);
lean_dec_ref(x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___lam__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___lam__2(x_1, x_2, x_3);
lean_dec_ref(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___lam__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; lean_object* x_8; 
x_7 = l_Lean_ResolveName_resolveNamespace(x_1, x_2, x_3, x_4);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_7);
lean_ctor_set(x_8, 1, x_6);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___lam__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___lam__3(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec_ref(x_5);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___lam__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; lean_object* x_9; 
x_8 = l_Lean_ResolveName_resolveGlobalName(x_1, x_2, x_3, x_4, x_5);
x_9 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_9, 0, x_8);
lean_ctor_set(x_9, 1, x_7);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___lam__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
x_8 = l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___lam__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
lean_dec_ref(x_6);
lean_dec(x_2);
return x_8;
}
}
static lean_object* _init_l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Name_hash___override___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Name_beq___boxed), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__1;
x_2 = l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__0;
x_3 = l_Std_HashMap_instInhabited(lean_box(0), lean_box(0), x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instInhabitedEffectiveImport_default;
return x_1;
}
}
static lean_object* _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_instHashableExtraModUse_hash___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_instBEqExtraModUse_beq___boxed), 2, 0);
return x_1;
}
}
static lean_object* _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__1;
x_2 = l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__0;
x_3 = l_Lean_PersistentHashMap_empty(lean_box(0), lean_box(0), x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = l___private_Lean_ExtraModUses_0__Lean_extraModUses;
return x_1;
}
}
static size_t _init_l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3___redArg___closed__0() {
_start:
{
size_t x_1; size_t x_2; size_t x_3; 
x_1 = 5;
x_2 = 1;
x_3 = lean_usize_shift_left(x_2, x_1);
return x_3;
}
}
static size_t _init_l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3___redArg___closed__1() {
_start:
{
size_t x_1; size_t x_2; size_t x_3; 
x_1 = 1;
x_2 = l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3___redArg___closed__0;
x_3 = lean_usize_sub(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at___00Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3_spec__3___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; uint8_t x_5; 
x_4 = lean_array_get_size(x_1);
x_5 = lean_nat_dec_lt(x_2, x_4);
lean_dec(x_4);
if (x_5 == 0)
{
lean_dec(x_2);
return x_5;
}
else
{
lean_object* x_6; uint8_t x_7; 
x_6 = lean_array_fget_borrowed(x_1, x_2);
x_7 = l_Lean_instBEqExtraModUse_beq(x_3, x_6);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; 
x_8 = lean_unsigned_to_nat(1u);
x_9 = lean_nat_add(x_2, x_8);
lean_dec(x_2);
x_2 = x_9;
goto _start;
}
else
{
lean_dec(x_2);
return x_7;
}
}
}
}
LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3___redArg(lean_object* x_1, size_t x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_4; lean_object* x_5; size_t x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; 
x_4 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_4);
lean_dec_ref(x_1);
x_5 = lean_box(2);
x_6 = 5;
x_7 = l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3___redArg___closed__1;
x_8 = lean_usize_land(x_2, x_7);
x_9 = lean_usize_to_nat(x_8);
x_10 = lean_array_get(x_5, x_4, x_9);
lean_dec(x_9);
lean_dec_ref(x_4);
switch (lean_obj_tag(x_10)) {
case 0:
{
lean_object* x_11; uint8_t x_12; 
x_11 = lean_ctor_get(x_10, 0);
lean_inc(x_11);
lean_dec_ref(x_10);
x_12 = l_Lean_instBEqExtraModUse_beq(x_3, x_11);
lean_dec(x_11);
return x_12;
}
case 1:
{
lean_object* x_13; size_t x_14; 
x_13 = lean_ctor_get(x_10, 0);
lean_inc(x_13);
lean_dec_ref(x_10);
x_14 = lean_usize_shift_right(x_2, x_6);
x_1 = x_13;
x_2 = x_14;
goto _start;
}
default: 
{
uint8_t x_16; 
x_16 = 0;
return x_16;
}
}
}
else
{
lean_object* x_17; lean_object* x_18; uint8_t x_19; 
x_17 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_17);
lean_dec_ref(x_1);
x_18 = lean_unsigned_to_nat(0u);
x_19 = l_Lean_PersistentHashMap_containsAtAux___at___00Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3_spec__3___redArg(x_17, x_18, x_3);
lean_dec_ref(x_17);
return x_19;
}
}
}
LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
uint64_t x_3; size_t x_4; uint8_t x_5; 
x_3 = l_Lean_instHashableExtraModUse_hash(x_2);
x_4 = lean_uint64_to_usize(x_3);
x_5 = l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3___redArg(x_1, x_4, x_2);
return x_5;
}
}
static lean_object* _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("extraModUses", 12, 12);
return x_1;
}
}
static lean_object* _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__4;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_isTracingEnabledFor___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__0___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_inheritedTraceOptions;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__0___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; 
x_4 = l_Lean_isTracingEnabledFor___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__0___redArg___closed__0;
x_5 = lean_st_ref_get(x_4);
x_6 = lean_st_ref_get(x_2);
x_7 = lean_ctor_get(x_6, 2);
lean_inc(x_7);
lean_dec(x_6);
x_8 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__0;
x_9 = l_List_head_x21___redArg(x_8, x_7);
lean_dec(x_7);
x_10 = lean_ctor_get(x_9, 1);
lean_inc(x_10);
lean_dec(x_9);
x_11 = l_Lean_checkTraceOption(x_5, x_10, x_1);
lean_dec(x_10);
lean_dec(x_5);
x_12 = lean_box(x_11);
x_13 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_13, 0, x_12);
return x_13;
}
}
static double _init_l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1___closed__0() {
_start:
{
lean_object* x_1; double x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_float_of_nat(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("", 0, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_Elab_Command_getRef___redArg(x_3);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
lean_dec_ref(x_6);
x_8 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg(x_2, x_4);
x_9 = !lean_is_exclusive(x_8);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_10 = lean_ctor_get(x_8, 0);
x_11 = lean_st_ref_take(x_4);
x_12 = !lean_is_exclusive(x_11);
if (x_12 == 0)
{
lean_object* x_13; uint8_t x_14; 
x_13 = lean_ctor_get(x_11, 9);
x_14 = !lean_is_exclusive(x_13);
if (x_14 == 0)
{
lean_object* x_15; double x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_15 = lean_ctor_get(x_13, 0);
x_16 = l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1___closed__0;
x_17 = 0;
x_18 = l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1___closed__1;
x_19 = lean_alloc_ctor(0, 2, 17);
lean_ctor_set(x_19, 0, x_1);
lean_ctor_set(x_19, 1, x_18);
lean_ctor_set_float(x_19, sizeof(void*)*2, x_16);
lean_ctor_set_float(x_19, sizeof(void*)*2 + 8, x_16);
lean_ctor_set_uint8(x_19, sizeof(void*)*2 + 16, x_17);
x_20 = l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1___closed__2;
x_21 = lean_alloc_ctor(9, 3, 0);
lean_ctor_set(x_21, 0, x_19);
lean_ctor_set(x_21, 1, x_10);
lean_ctor_set(x_21, 2, x_20);
x_22 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_22, 0, x_7);
lean_ctor_set(x_22, 1, x_21);
x_23 = l_Lean_PersistentArray_push___redArg(x_15, x_22);
lean_ctor_set(x_13, 0, x_23);
x_24 = lean_st_ref_set(x_4, x_11);
x_25 = lean_box(0);
lean_ctor_set(x_8, 0, x_25);
return x_8;
}
else
{
uint64_t x_26; lean_object* x_27; double x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; 
x_26 = lean_ctor_get_uint64(x_13, sizeof(void*)*1);
x_27 = lean_ctor_get(x_13, 0);
lean_inc(x_27);
lean_dec(x_13);
x_28 = l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1___closed__0;
x_29 = 0;
x_30 = l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1___closed__1;
x_31 = lean_alloc_ctor(0, 2, 17);
lean_ctor_set(x_31, 0, x_1);
lean_ctor_set(x_31, 1, x_30);
lean_ctor_set_float(x_31, sizeof(void*)*2, x_28);
lean_ctor_set_float(x_31, sizeof(void*)*2 + 8, x_28);
lean_ctor_set_uint8(x_31, sizeof(void*)*2 + 16, x_29);
x_32 = l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1___closed__2;
x_33 = lean_alloc_ctor(9, 3, 0);
lean_ctor_set(x_33, 0, x_31);
lean_ctor_set(x_33, 1, x_10);
lean_ctor_set(x_33, 2, x_32);
x_34 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_34, 0, x_7);
lean_ctor_set(x_34, 1, x_33);
x_35 = l_Lean_PersistentArray_push___redArg(x_27, x_34);
x_36 = lean_alloc_ctor(0, 1, 8);
lean_ctor_set(x_36, 0, x_35);
lean_ctor_set_uint64(x_36, sizeof(void*)*1, x_26);
lean_ctor_set(x_11, 9, x_36);
x_37 = lean_st_ref_set(x_4, x_11);
x_38 = lean_box(0);
lean_ctor_set(x_8, 0, x_38);
return x_8;
}
}
else
{
lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint64_t x_50; lean_object* x_51; lean_object* x_52; double x_53; uint8_t x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; 
x_39 = lean_ctor_get(x_11, 9);
x_40 = lean_ctor_get(x_11, 0);
x_41 = lean_ctor_get(x_11, 1);
x_42 = lean_ctor_get(x_11, 2);
x_43 = lean_ctor_get(x_11, 3);
x_44 = lean_ctor_get(x_11, 4);
x_45 = lean_ctor_get(x_11, 5);
x_46 = lean_ctor_get(x_11, 6);
x_47 = lean_ctor_get(x_11, 7);
x_48 = lean_ctor_get(x_11, 8);
x_49 = lean_ctor_get(x_11, 10);
lean_inc(x_49);
lean_inc(x_39);
lean_inc(x_48);
lean_inc(x_47);
lean_inc(x_46);
lean_inc(x_45);
lean_inc(x_44);
lean_inc(x_43);
lean_inc(x_42);
lean_inc(x_41);
lean_inc(x_40);
lean_dec(x_11);
x_50 = lean_ctor_get_uint64(x_39, sizeof(void*)*1);
x_51 = lean_ctor_get(x_39, 0);
lean_inc_ref(x_51);
if (lean_is_exclusive(x_39)) {
 lean_ctor_release(x_39, 0);
 x_52 = x_39;
} else {
 lean_dec_ref(x_39);
 x_52 = lean_box(0);
}
x_53 = l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1___closed__0;
x_54 = 0;
x_55 = l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1___closed__1;
x_56 = lean_alloc_ctor(0, 2, 17);
lean_ctor_set(x_56, 0, x_1);
lean_ctor_set(x_56, 1, x_55);
lean_ctor_set_float(x_56, sizeof(void*)*2, x_53);
lean_ctor_set_float(x_56, sizeof(void*)*2 + 8, x_53);
lean_ctor_set_uint8(x_56, sizeof(void*)*2 + 16, x_54);
x_57 = l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1___closed__2;
x_58 = lean_alloc_ctor(9, 3, 0);
lean_ctor_set(x_58, 0, x_56);
lean_ctor_set(x_58, 1, x_10);
lean_ctor_set(x_58, 2, x_57);
x_59 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_59, 0, x_7);
lean_ctor_set(x_59, 1, x_58);
x_60 = l_Lean_PersistentArray_push___redArg(x_51, x_59);
if (lean_is_scalar(x_52)) {
 x_61 = lean_alloc_ctor(0, 1, 8);
} else {
 x_61 = x_52;
}
lean_ctor_set(x_61, 0, x_60);
lean_ctor_set_uint64(x_61, sizeof(void*)*1, x_50);
x_62 = lean_alloc_ctor(0, 11, 0);
lean_ctor_set(x_62, 0, x_40);
lean_ctor_set(x_62, 1, x_41);
lean_ctor_set(x_62, 2, x_42);
lean_ctor_set(x_62, 3, x_43);
lean_ctor_set(x_62, 4, x_44);
lean_ctor_set(x_62, 5, x_45);
lean_ctor_set(x_62, 6, x_46);
lean_ctor_set(x_62, 7, x_47);
lean_ctor_set(x_62, 8, x_48);
lean_ctor_set(x_62, 9, x_61);
lean_ctor_set(x_62, 10, x_49);
x_63 = lean_st_ref_set(x_4, x_62);
x_64 = lean_box(0);
lean_ctor_set(x_8, 0, x_64);
return x_8;
}
}
else
{
lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; uint64_t x_79; lean_object* x_80; lean_object* x_81; double x_82; uint8_t x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; 
x_65 = lean_ctor_get(x_8, 0);
lean_inc(x_65);
lean_dec(x_8);
x_66 = lean_st_ref_take(x_4);
x_67 = lean_ctor_get(x_66, 9);
lean_inc_ref(x_67);
x_68 = lean_ctor_get(x_66, 0);
lean_inc_ref(x_68);
x_69 = lean_ctor_get(x_66, 1);
lean_inc_ref(x_69);
x_70 = lean_ctor_get(x_66, 2);
lean_inc(x_70);
x_71 = lean_ctor_get(x_66, 3);
lean_inc(x_71);
x_72 = lean_ctor_get(x_66, 4);
lean_inc(x_72);
x_73 = lean_ctor_get(x_66, 5);
lean_inc(x_73);
x_74 = lean_ctor_get(x_66, 6);
lean_inc_ref(x_74);
x_75 = lean_ctor_get(x_66, 7);
lean_inc_ref(x_75);
x_76 = lean_ctor_get(x_66, 8);
lean_inc_ref(x_76);
x_77 = lean_ctor_get(x_66, 10);
lean_inc_ref(x_77);
if (lean_is_exclusive(x_66)) {
 lean_ctor_release(x_66, 0);
 lean_ctor_release(x_66, 1);
 lean_ctor_release(x_66, 2);
 lean_ctor_release(x_66, 3);
 lean_ctor_release(x_66, 4);
 lean_ctor_release(x_66, 5);
 lean_ctor_release(x_66, 6);
 lean_ctor_release(x_66, 7);
 lean_ctor_release(x_66, 8);
 lean_ctor_release(x_66, 9);
 lean_ctor_release(x_66, 10);
 x_78 = x_66;
} else {
 lean_dec_ref(x_66);
 x_78 = lean_box(0);
}
x_79 = lean_ctor_get_uint64(x_67, sizeof(void*)*1);
x_80 = lean_ctor_get(x_67, 0);
lean_inc_ref(x_80);
if (lean_is_exclusive(x_67)) {
 lean_ctor_release(x_67, 0);
 x_81 = x_67;
} else {
 lean_dec_ref(x_67);
 x_81 = lean_box(0);
}
x_82 = l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1___closed__0;
x_83 = 0;
x_84 = l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1___closed__1;
x_85 = lean_alloc_ctor(0, 2, 17);
lean_ctor_set(x_85, 0, x_1);
lean_ctor_set(x_85, 1, x_84);
lean_ctor_set_float(x_85, sizeof(void*)*2, x_82);
lean_ctor_set_float(x_85, sizeof(void*)*2 + 8, x_82);
lean_ctor_set_uint8(x_85, sizeof(void*)*2 + 16, x_83);
x_86 = l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1___closed__2;
x_87 = lean_alloc_ctor(9, 3, 0);
lean_ctor_set(x_87, 0, x_85);
lean_ctor_set(x_87, 1, x_65);
lean_ctor_set(x_87, 2, x_86);
x_88 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_88, 0, x_7);
lean_ctor_set(x_88, 1, x_87);
x_89 = l_Lean_PersistentArray_push___redArg(x_80, x_88);
if (lean_is_scalar(x_81)) {
 x_90 = lean_alloc_ctor(0, 1, 8);
} else {
 x_90 = x_81;
}
lean_ctor_set(x_90, 0, x_89);
lean_ctor_set_uint64(x_90, sizeof(void*)*1, x_79);
if (lean_is_scalar(x_78)) {
 x_91 = lean_alloc_ctor(0, 11, 0);
} else {
 x_91 = x_78;
}
lean_ctor_set(x_91, 0, x_68);
lean_ctor_set(x_91, 1, x_69);
lean_ctor_set(x_91, 2, x_70);
lean_ctor_set(x_91, 3, x_71);
lean_ctor_set(x_91, 4, x_72);
lean_ctor_set(x_91, 5, x_73);
lean_ctor_set(x_91, 6, x_74);
lean_ctor_set(x_91, 7, x_75);
lean_ctor_set(x_91, 8, x_76);
lean_ctor_set(x_91, 9, x_90);
lean_ctor_set(x_91, 10, x_77);
x_92 = lean_st_ref_set(x_4, x_91);
x_93 = lean_box(0);
x_94 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_94, 0, x_93);
return x_94;
}
}
else
{
uint8_t x_95; 
lean_dec_ref(x_2);
lean_dec(x_1);
x_95 = !lean_is_exclusive(x_6);
if (x_95 == 0)
{
return x_6;
}
else
{
lean_object* x_96; lean_object* x_97; 
x_96 = lean_ctor_get(x_6, 0);
lean_inc(x_96);
lean_dec(x_6);
x_97 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_97, 0, x_96);
return x_97;
}
}
}
}
static lean_object* _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(" extra mod use ", 15, 15);
return x_1;
}
}
static lean_object* _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__6;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(" of ", 4, 4);
return x_1;
}
}
static lean_object* _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__8;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1___closed__1;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__11() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("recording ", 10, 10);
return x_1;
}
}
static lean_object* _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__11;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__13() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(" ", 1, 1);
return x_1;
}
}
static lean_object* _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__13;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__15() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("regular", 7, 7);
return x_1;
}
}
static lean_object* _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__16() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("meta", 4, 4);
return x_1;
}
}
static lean_object* _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__17() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("private", 7, 7);
return x_1;
}
}
static lean_object* _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__18() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("public", 6, 6);
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_46; uint8_t x_47; 
x_7 = lean_st_ref_get(x_5);
x_8 = lean_ctor_get(x_7, 0);
lean_inc_ref(x_8);
lean_dec(x_7);
x_9 = lean_ctor_get_uint8(x_8, sizeof(void*)*8);
lean_dec_ref(x_8);
x_10 = lean_st_ref_get(x_5);
x_11 = lean_ctor_get(x_10, 0);
lean_inc_ref(x_11);
lean_dec(x_10);
x_12 = l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__2;
lean_inc(x_1);
x_13 = lean_alloc_ctor(0, 1, 2);
lean_ctor_set(x_13, 0, x_1);
lean_ctor_set_uint8(x_13, sizeof(void*)*1, x_9);
lean_ctor_set_uint8(x_13, sizeof(void*)*1 + 1, x_2);
x_14 = l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__3;
x_15 = lean_box(1);
x_16 = lean_box(0);
x_46 = l_Lean_SimplePersistentEnvExtension_getState___redArg(x_12, x_14, x_11, x_15, x_16);
x_47 = l_Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3___redArg(x_46, x_13);
if (x_47 == 0)
{
lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_56; lean_object* x_57; uint8_t x_70; 
x_48 = l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__5;
x_49 = l_Lean_isTracingEnabledFor___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__0___redArg(x_48, x_5);
x_50 = lean_ctor_get(x_49, 0);
lean_inc(x_50);
lean_dec_ref(x_49);
x_70 = lean_unbox(x_50);
lean_dec(x_50);
if (x_70 == 0)
{
lean_dec(x_3);
lean_dec(x_1);
x_17 = x_5;
x_18 = lean_box(0);
goto block_45;
}
else
{
lean_object* x_71; lean_object* x_72; 
x_71 = l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__12;
if (x_9 == 0)
{
lean_object* x_80; 
x_80 = l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__17;
x_72 = x_80;
goto block_79;
}
else
{
lean_object* x_81; 
x_81 = l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__18;
x_72 = x_81;
goto block_79;
}
block_79:
{
lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; 
x_73 = l_Lean_stringToMessageData(x_72);
x_74 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_74, 0, x_71);
lean_ctor_set(x_74, 1, x_73);
x_75 = l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__14;
x_76 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_76, 0, x_74);
lean_ctor_set(x_76, 1, x_75);
if (x_2 == 0)
{
lean_object* x_77; 
x_77 = l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__15;
x_56 = x_76;
x_57 = x_77;
goto block_69;
}
else
{
lean_object* x_78; 
x_78 = l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__16;
x_56 = x_76;
x_57 = x_78;
goto block_69;
}
}
}
block_55:
{
lean_object* x_53; lean_object* x_54; 
x_53 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_53, 0, x_51);
lean_ctor_set(x_53, 1, x_52);
x_54 = l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1(x_48, x_53, x_4, x_5);
if (lean_obj_tag(x_54) == 0)
{
lean_dec_ref(x_54);
x_17 = x_5;
x_18 = lean_box(0);
goto block_45;
}
else
{
lean_dec_ref(x_13);
return x_54;
}
}
block_69:
{
lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; 
x_58 = l_Lean_stringToMessageData(x_57);
x_59 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_59, 0, x_56);
lean_ctor_set(x_59, 1, x_58);
x_60 = l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__7;
x_61 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_61, 0, x_59);
lean_ctor_set(x_61, 1, x_60);
x_62 = l_Lean_MessageData_ofName(x_1);
x_63 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_63, 0, x_61);
lean_ctor_set(x_63, 1, x_62);
x_64 = l_Lean_Name_isAnonymous(x_3);
if (x_64 == 0)
{
lean_object* x_65; lean_object* x_66; lean_object* x_67; 
x_65 = l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__9;
x_66 = l_Lean_MessageData_ofName(x_3);
x_67 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_67, 0, x_65);
lean_ctor_set(x_67, 1, x_66);
x_51 = x_63;
x_52 = x_67;
goto block_55;
}
else
{
lean_object* x_68; 
lean_dec(x_3);
x_68 = l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__10;
x_51 = x_63;
x_52 = x_68;
goto block_55;
}
}
}
else
{
lean_object* x_82; lean_object* x_83; 
lean_dec_ref(x_13);
lean_dec(x_3);
lean_dec(x_1);
x_82 = lean_box(0);
x_83 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_83, 0, x_82);
return x_83;
}
block_45:
{
lean_object* x_19; lean_object* x_20; uint8_t x_21; 
x_19 = lean_st_ref_take(x_17);
x_20 = lean_ctor_get(x_14, 0);
lean_inc_ref(x_20);
x_21 = !lean_is_exclusive(x_19);
if (x_21 == 0)
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_22 = lean_ctor_get(x_19, 0);
x_23 = lean_ctor_get(x_20, 2);
lean_inc(x_23);
lean_dec_ref(x_20);
x_24 = l_Lean_PersistentEnvExtension_addEntry___redArg(x_14, x_22, x_13, x_23, x_16);
lean_dec(x_23);
lean_ctor_set(x_19, 0, x_24);
x_25 = lean_st_ref_set(x_17, x_19);
x_26 = lean_box(0);
x_27 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_27, 0, x_26);
return x_27;
}
else
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; 
x_28 = lean_ctor_get(x_19, 0);
x_29 = lean_ctor_get(x_19, 1);
x_30 = lean_ctor_get(x_19, 2);
x_31 = lean_ctor_get(x_19, 3);
x_32 = lean_ctor_get(x_19, 4);
x_33 = lean_ctor_get(x_19, 5);
x_34 = lean_ctor_get(x_19, 6);
x_35 = lean_ctor_get(x_19, 7);
x_36 = lean_ctor_get(x_19, 8);
x_37 = lean_ctor_get(x_19, 9);
x_38 = lean_ctor_get(x_19, 10);
lean_inc(x_38);
lean_inc(x_37);
lean_inc(x_36);
lean_inc(x_35);
lean_inc(x_34);
lean_inc(x_33);
lean_inc(x_32);
lean_inc(x_31);
lean_inc(x_30);
lean_inc(x_29);
lean_inc(x_28);
lean_dec(x_19);
x_39 = lean_ctor_get(x_20, 2);
lean_inc(x_39);
lean_dec_ref(x_20);
x_40 = l_Lean_PersistentEnvExtension_addEntry___redArg(x_14, x_28, x_13, x_39, x_16);
lean_dec(x_39);
x_41 = lean_alloc_ctor(0, 11, 0);
lean_ctor_set(x_41, 0, x_40);
lean_ctor_set(x_41, 1, x_29);
lean_ctor_set(x_41, 2, x_30);
lean_ctor_set(x_41, 3, x_31);
lean_ctor_set(x_41, 4, x_32);
lean_ctor_set(x_41, 5, x_33);
lean_ctor_set(x_41, 6, x_34);
lean_ctor_set(x_41, 7, x_35);
lean_ctor_set(x_41, 8, x_36);
lean_ctor_set(x_41, 9, x_37);
lean_ctor_set(x_41, 10, x_38);
x_42 = lean_st_ref_set(x_17, x_41);
x_43 = lean_box(0);
x_44 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_44, 0, x_43);
return x_44;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, size_t x_6, size_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
uint8_t x_12; 
x_12 = lean_usize_dec_lt(x_7, x_6);
if (x_12 == 0)
{
lean_object* x_13; 
lean_dec(x_3);
lean_dec_ref(x_2);
x_13 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_13, 0, x_8);
return x_13;
}
else
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; 
x_14 = l_Lean_Environment_header(x_1);
x_15 = lean_ctor_get(x_14, 3);
lean_inc_ref(x_15);
lean_dec_ref(x_14);
x_16 = lean_array_uget(x_5, x_7);
lean_inc_ref(x_2);
x_17 = lean_array_get(x_2, x_15, x_16);
lean_dec(x_16);
lean_dec_ref(x_15);
x_18 = lean_ctor_get(x_17, 0);
lean_inc_ref(x_18);
lean_dec(x_17);
x_19 = lean_ctor_get(x_18, 0);
lean_inc(x_19);
lean_dec_ref(x_18);
x_20 = 0;
lean_inc(x_3);
x_21 = l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3(x_19, x_20, x_3, x_9, x_10);
if (lean_obj_tag(x_21) == 0)
{
size_t x_22; size_t x_23; 
lean_dec_ref(x_21);
x_22 = 1;
x_23 = lean_usize_add(x_7, x_22);
{
size_t _tmp_6 = x_23;
lean_object* _tmp_7 = x_4;
x_7 = _tmp_6;
x_8 = _tmp_7;
}
goto _start;
}
else
{
lean_dec(x_3);
lean_dec_ref(x_2);
return x_21;
}
}
}
}
static lean_object* _init_l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_indirectModUseExt;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___00Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__8_spec__8___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; 
x_3 = lean_box(0);
return x_3;
}
else
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; 
x_4 = lean_ctor_get(x_2, 0);
x_5 = lean_ctor_get(x_2, 1);
x_6 = lean_ctor_get(x_2, 2);
x_7 = lean_name_eq(x_4, x_1);
if (x_7 == 0)
{
x_2 = x_6;
goto _start;
}
else
{
lean_object* x_9; 
lean_inc(x_5);
x_9 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_9, 0, x_5);
return x_9;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__8___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; uint64_t x_5; uint64_t x_6; uint64_t x_7; uint64_t x_8; uint64_t x_9; uint64_t x_10; uint64_t x_11; size_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; lean_object* x_17; lean_object* x_18; 
x_3 = lean_ctor_get(x_1, 1);
x_4 = lean_array_get_size(x_3);
x_5 = l_Lean_Name_hash___override(x_2);
x_6 = 32;
x_7 = lean_uint64_shift_right(x_5, x_6);
x_8 = lean_uint64_xor(x_5, x_7);
x_9 = 16;
x_10 = lean_uint64_shift_right(x_8, x_9);
x_11 = lean_uint64_xor(x_8, x_10);
x_12 = lean_uint64_to_usize(x_11);
x_13 = lean_usize_of_nat(x_4);
lean_dec(x_4);
x_14 = 1;
x_15 = lean_usize_sub(x_13, x_14);
x_16 = lean_usize_land(x_12, x_15);
x_17 = lean_array_uget(x_3, x_16);
x_18 = l_Std_DHashMap_Internal_AssocList_get_x3f___at___00Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__8_spec__8___redArg(x_2, x_17);
lean_dec(x_17);
return x_18;
}
}
static lean_object* _init_l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_6; lean_object* x_10; lean_object* x_11; 
x_6 = lean_st_ref_get(x_4);
x_10 = lean_ctor_get(x_6, 0);
lean_inc_ref(x_10);
lean_dec(x_6);
x_11 = l_Lean_Environment_getModuleIdxFor_x3f(x_10, x_1);
if (lean_obj_tag(x_11) == 0)
{
lean_dec_ref(x_10);
lean_dec(x_1);
goto block_9;
}
else
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; 
x_12 = lean_ctor_get(x_11, 0);
lean_inc(x_12);
lean_dec_ref(x_11);
x_13 = l_Lean_Environment_header(x_10);
x_14 = lean_ctor_get(x_13, 3);
lean_inc_ref(x_14);
lean_dec_ref(x_13);
x_15 = lean_array_get_size(x_14);
x_16 = lean_nat_dec_lt(x_12, x_15);
lean_dec(x_15);
if (x_16 == 0)
{
lean_dec_ref(x_14);
lean_dec(x_12);
lean_dec_ref(x_10);
lean_dec(x_1);
goto block_9;
}
else
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_31; uint8_t x_32; 
x_17 = lean_st_ref_get(x_4);
x_18 = lean_ctor_get(x_17, 0);
lean_inc_ref(x_18);
lean_dec(x_17);
x_19 = l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__2;
x_20 = l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__3;
x_31 = lean_array_fget(x_14, x_12);
lean_dec(x_12);
lean_dec_ref(x_14);
if (x_2 == 0)
{
lean_dec_ref(x_18);
x_32 = x_2;
goto block_43;
}
else
{
uint8_t x_44; 
lean_inc(x_1);
x_44 = l_Lean_isMarkedMeta(x_18, x_1);
if (x_44 == 0)
{
x_32 = x_2;
goto block_43;
}
else
{
uint8_t x_45; 
x_45 = 0;
x_32 = x_45;
goto block_43;
}
}
block_30:
{
lean_object* x_23; size_t x_24; size_t x_25; lean_object* x_26; 
x_23 = lean_box(0);
x_24 = lean_array_size(x_22);
x_25 = 0;
x_26 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__7(x_10, x_20, x_1, x_23, x_22, x_24, x_25, x_23, x_3, x_4);
lean_dec_ref(x_22);
lean_dec_ref(x_10);
if (lean_obj_tag(x_26) == 0)
{
uint8_t x_27; 
x_27 = !lean_is_exclusive(x_26);
if (x_27 == 0)
{
lean_object* x_28; 
x_28 = lean_ctor_get(x_26, 0);
lean_dec(x_28);
lean_ctor_set(x_26, 0, x_23);
return x_26;
}
else
{
lean_object* x_29; 
lean_dec(x_26);
x_29 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_29, 0, x_23);
return x_29;
}
}
else
{
return x_26;
}
}
block_43:
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; 
x_33 = lean_ctor_get(x_31, 0);
lean_inc_ref(x_33);
lean_dec(x_31);
x_34 = lean_ctor_get(x_33, 0);
lean_inc(x_34);
lean_dec_ref(x_33);
lean_inc(x_1);
x_35 = l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3(x_34, x_32, x_1, x_3, x_4);
if (lean_obj_tag(x_35) == 0)
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; 
lean_dec_ref(x_35);
x_36 = l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__4;
x_37 = lean_box(1);
x_38 = lean_box(0);
lean_inc_ref(x_10);
x_39 = l_Lean_SimplePersistentEnvExtension_getState___redArg(x_19, x_36, x_10, x_37, x_38);
x_40 = l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__8___redArg(x_39, x_1);
lean_dec(x_39);
if (lean_obj_tag(x_40) == 0)
{
lean_object* x_41; 
x_41 = l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__5;
x_21 = lean_box(0);
x_22 = x_41;
goto block_30;
}
else
{
lean_object* x_42; 
x_42 = lean_ctor_get(x_40, 0);
lean_inc(x_42);
lean_dec_ref(x_40);
x_21 = lean_box(0);
x_22 = x_42;
goto block_30;
}
}
else
{
lean_dec_ref(x_10);
lean_dec(x_1);
return x_35;
}
}
}
}
block_9:
{
lean_object* x_7; lean_object* x_8; 
x_7 = lean_box(0);
x_8 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_8, 0, x_7);
return x_8;
}
}
}
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__11___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_7; 
x_7 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_7, 0, x_3);
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; 
x_8 = lean_ctor_get(x_2, 0);
lean_inc(x_8);
x_9 = lean_ctor_get(x_2, 1);
lean_inc(x_9);
lean_dec_ref(x_2);
x_10 = 1;
x_11 = l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3(x_8, x_10, x_4, x_5);
if (lean_obj_tag(x_11) == 0)
{
lean_dec_ref(x_11);
{
lean_object* _tmp_1 = x_9;
lean_object* _tmp_2 = x_1;
x_2 = _tmp_1;
x_3 = _tmp_2;
}
goto _start;
}
else
{
lean_dec(x_9);
return x_11;
}
}
}
}
LEAN_EXPORT lean_object* l_List_forM___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__12(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_box(0);
x_6 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_6, 0, x_5);
return x_6;
}
else
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_7 = lean_ctor_get(x_1, 0);
lean_inc(x_7);
x_8 = lean_ctor_get(x_1, 1);
lean_inc(x_8);
lean_dec_ref(x_1);
x_9 = lean_ctor_get(x_7, 0);
lean_inc(x_9);
x_10 = lean_ctor_get(x_7, 1);
lean_inc(x_10);
lean_dec(x_7);
lean_inc(x_9);
x_11 = l_Lean_isTracingEnabledFor___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__0___redArg(x_9, x_3);
x_12 = !lean_is_exclusive(x_11);
if (x_12 == 0)
{
lean_object* x_13; uint8_t x_14; 
x_13 = lean_ctor_get(x_11, 0);
x_14 = lean_unbox(x_13);
lean_dec(x_13);
if (x_14 == 0)
{
lean_free_object(x_11);
lean_dec(x_10);
lean_dec(x_9);
x_1 = x_8;
goto _start;
}
else
{
lean_object* x_16; lean_object* x_17; 
lean_ctor_set_tag(x_11, 3);
lean_ctor_set(x_11, 0, x_10);
x_16 = l_Lean_MessageData_ofFormat(x_11);
x_17 = l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1(x_9, x_16, x_2, x_3);
if (lean_obj_tag(x_17) == 0)
{
lean_dec_ref(x_17);
x_1 = x_8;
goto _start;
}
else
{
lean_dec(x_8);
return x_17;
}
}
}
else
{
lean_object* x_19; uint8_t x_20; 
x_19 = lean_ctor_get(x_11, 0);
lean_inc(x_19);
lean_dec(x_11);
x_20 = lean_unbox(x_19);
lean_dec(x_19);
if (x_20 == 0)
{
lean_dec(x_10);
lean_dec(x_9);
x_1 = x_8;
goto _start;
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; 
x_22 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_22, 0, x_10);
x_23 = l_Lean_MessageData_ofFormat(x_22);
x_24 = l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1(x_9, x_23, x_2, x_3);
if (lean_obj_tag(x_24) == 0)
{
lean_dec_ref(x_24);
x_1 = x_8;
goto _start;
}
else
{
lean_dec(x_8);
return x_24;
}
}
}
}
}
}
static lean_object* _init_l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("maximum recursion depth has been reached\nuse `set_option maxRecDepth <num>` to increase limit\nuse `set_option diagnostics true` to get diagnostic information", 157, 157);
return x_1;
}
}
static lean_object* _init_l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_maxRecDepthErrorMessage;
return x_1;
}
}
static lean_object* _init_l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__3;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__4;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("maxRecDepth", 11, 11);
return x_1;
}
}
static lean_object* _init_l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("runtime", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__1;
x_2 = l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__0;
x_3 = l_Lean_Name_mkStr2(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__5;
x_2 = l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__2;
x_3 = lean_alloc_ctor(8, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg(lean_object* x_1) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__6;
x_4 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_3);
x_5 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_5, 0, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_5 = lean_st_ref_get(x_3);
x_6 = lean_ctor_get(x_5, 0);
lean_inc_ref(x_6);
lean_dec(x_5);
x_7 = lean_st_ref_get(x_3);
x_8 = lean_ctor_get(x_7, 2);
lean_inc(x_8);
lean_dec(x_7);
x_9 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__0;
x_10 = l_List_head_x21___redArg(x_9, x_8);
lean_dec(x_8);
x_11 = lean_ctor_get(x_10, 1);
lean_inc(x_11);
lean_dec(x_10);
x_12 = l_Lean_Elab_Command_getScope___redArg(x_3);
if (lean_obj_tag(x_12) == 0)
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_13 = lean_ctor_get(x_12, 0);
lean_inc(x_13);
lean_dec_ref(x_12);
x_14 = lean_ctor_get(x_13, 2);
lean_inc(x_14);
lean_dec(x_13);
x_15 = l_Lean_Elab_Command_getScope___redArg(x_3);
if (lean_obj_tag(x_15) == 0)
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_16 = lean_ctor_get(x_15, 0);
lean_inc(x_16);
lean_dec_ref(x_15);
x_17 = lean_ctor_get(x_16, 3);
lean_inc(x_17);
lean_dec(x_16);
x_18 = l_Lean_Elab_Command_getRef___redArg(x_2);
if (lean_obj_tag(x_18) == 0)
{
lean_object* x_19; lean_object* x_20; 
x_19 = lean_ctor_get(x_18, 0);
lean_inc(x_19);
lean_dec_ref(x_18);
x_20 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_2);
if (lean_obj_tag(x_20) == 0)
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_21 = lean_ctor_get(x_20, 0);
lean_inc(x_21);
lean_dec_ref(x_20);
x_22 = lean_ctor_get(x_2, 2);
x_23 = lean_ctor_get(x_2, 5);
lean_inc_ref(x_6);
x_24 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___lam__0___boxed), 4, 1);
lean_closure_set(x_24, 0, x_6);
lean_inc_ref(x_6);
x_25 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___lam__1___boxed), 4, 1);
lean_closure_set(x_25, 0, x_6);
lean_inc(x_14);
x_26 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___lam__2___boxed), 3, 1);
lean_closure_set(x_26, 0, x_14);
lean_inc(x_17);
lean_inc(x_14);
lean_inc_ref(x_6);
x_27 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___lam__3___boxed), 6, 3);
lean_closure_set(x_27, 0, x_6);
lean_closure_set(x_27, 1, x_14);
lean_closure_set(x_27, 2, x_17);
x_28 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___lam__4___boxed), 7, 4);
lean_closure_set(x_28, 0, x_6);
lean_closure_set(x_28, 1, x_11);
lean_closure_set(x_28, 2, x_14);
lean_closure_set(x_28, 3, x_17);
x_29 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_29, 0, x_25);
lean_ctor_set(x_29, 1, x_26);
lean_ctor_set(x_29, 2, x_24);
lean_ctor_set(x_29, 3, x_27);
lean_ctor_set(x_29, 4, x_28);
if (lean_obj_tag(x_23) == 0)
{
lean_object* x_92; lean_object* x_93; 
x_92 = l_Lean_getMainModule___at___00Lean_Elab_Command_elabElabRulesAux_spec__1___redArg(x_3);
x_93 = lean_ctor_get(x_92, 0);
lean_inc(x_93);
lean_dec_ref(x_92);
x_30 = x_93;
x_31 = lean_box(0);
goto block_91;
}
else
{
lean_object* x_94; 
x_94 = lean_ctor_get(x_23, 0);
lean_inc(x_94);
x_30 = x_94;
x_31 = lean_box(0);
goto block_91;
}
block_91:
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; 
x_32 = lean_st_ref_get(x_3);
x_33 = lean_ctor_get(x_32, 5);
lean_inc(x_33);
lean_dec(x_32);
x_34 = lean_st_ref_get(x_3);
x_35 = lean_ctor_get(x_34, 4);
lean_inc(x_35);
lean_dec(x_34);
lean_inc(x_22);
x_36 = lean_alloc_ctor(0, 6, 0);
lean_ctor_set(x_36, 0, x_29);
lean_ctor_set(x_36, 1, x_30);
lean_ctor_set(x_36, 2, x_21);
lean_ctor_set(x_36, 3, x_22);
lean_ctor_set(x_36, 4, x_33);
lean_ctor_set(x_36, 5, x_19);
x_37 = lean_box(0);
x_38 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_38, 0, x_35);
lean_ctor_set(x_38, 1, x_37);
lean_ctor_set(x_38, 2, x_37);
x_39 = lean_apply_2(x_1, x_36, x_38);
if (lean_obj_tag(x_39) == 0)
{
lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; 
x_40 = lean_ctor_get(x_39, 1);
lean_inc(x_40);
x_41 = lean_ctor_get(x_39, 0);
lean_inc(x_41);
lean_dec_ref(x_39);
x_42 = lean_ctor_get(x_40, 0);
lean_inc(x_42);
x_43 = lean_ctor_get(x_40, 1);
lean_inc(x_43);
x_44 = lean_ctor_get(x_40, 2);
lean_inc(x_44);
lean_dec(x_40);
x_45 = lean_box(0);
x_46 = l_List_forIn_x27_loop___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__11___redArg(x_45, x_44, x_45, x_2, x_3);
if (lean_obj_tag(x_46) == 0)
{
lean_object* x_47; uint8_t x_48; 
lean_dec_ref(x_46);
x_47 = lean_st_ref_take(x_3);
x_48 = !lean_is_exclusive(x_47);
if (x_48 == 0)
{
lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; 
x_49 = lean_ctor_get(x_47, 4);
lean_dec(x_49);
lean_ctor_set(x_47, 4, x_42);
x_50 = lean_st_ref_set(x_3, x_47);
x_51 = l_List_reverse___redArg(x_43);
x_52 = l_List_forM___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__12(x_51, x_2, x_3);
lean_dec_ref(x_2);
if (lean_obj_tag(x_52) == 0)
{
uint8_t x_53; 
x_53 = !lean_is_exclusive(x_52);
if (x_53 == 0)
{
lean_object* x_54; 
x_54 = lean_ctor_get(x_52, 0);
lean_dec(x_54);
lean_ctor_set(x_52, 0, x_41);
return x_52;
}
else
{
lean_object* x_55; 
lean_dec(x_52);
x_55 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_55, 0, x_41);
return x_55;
}
}
else
{
uint8_t x_56; 
lean_dec(x_41);
x_56 = !lean_is_exclusive(x_52);
if (x_56 == 0)
{
return x_52;
}
else
{
lean_object* x_57; lean_object* x_58; 
x_57 = lean_ctor_get(x_52, 0);
lean_inc(x_57);
lean_dec(x_52);
x_58 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_58, 0, x_57);
return x_58;
}
}
}
else
{
lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; 
x_59 = lean_ctor_get(x_47, 0);
x_60 = lean_ctor_get(x_47, 1);
x_61 = lean_ctor_get(x_47, 2);
x_62 = lean_ctor_get(x_47, 3);
x_63 = lean_ctor_get(x_47, 5);
x_64 = lean_ctor_get(x_47, 6);
x_65 = lean_ctor_get(x_47, 7);
x_66 = lean_ctor_get(x_47, 8);
x_67 = lean_ctor_get(x_47, 9);
x_68 = lean_ctor_get(x_47, 10);
lean_inc(x_68);
lean_inc(x_67);
lean_inc(x_66);
lean_inc(x_65);
lean_inc(x_64);
lean_inc(x_63);
lean_inc(x_62);
lean_inc(x_61);
lean_inc(x_60);
lean_inc(x_59);
lean_dec(x_47);
x_69 = lean_alloc_ctor(0, 11, 0);
lean_ctor_set(x_69, 0, x_59);
lean_ctor_set(x_69, 1, x_60);
lean_ctor_set(x_69, 2, x_61);
lean_ctor_set(x_69, 3, x_62);
lean_ctor_set(x_69, 4, x_42);
lean_ctor_set(x_69, 5, x_63);
lean_ctor_set(x_69, 6, x_64);
lean_ctor_set(x_69, 7, x_65);
lean_ctor_set(x_69, 8, x_66);
lean_ctor_set(x_69, 9, x_67);
lean_ctor_set(x_69, 10, x_68);
x_70 = lean_st_ref_set(x_3, x_69);
x_71 = l_List_reverse___redArg(x_43);
x_72 = l_List_forM___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__12(x_71, x_2, x_3);
lean_dec_ref(x_2);
if (lean_obj_tag(x_72) == 0)
{
lean_object* x_73; lean_object* x_74; 
if (lean_is_exclusive(x_72)) {
 lean_ctor_release(x_72, 0);
 x_73 = x_72;
} else {
 lean_dec_ref(x_72);
 x_73 = lean_box(0);
}
if (lean_is_scalar(x_73)) {
 x_74 = lean_alloc_ctor(0, 1, 0);
} else {
 x_74 = x_73;
}
lean_ctor_set(x_74, 0, x_41);
return x_74;
}
else
{
lean_object* x_75; lean_object* x_76; lean_object* x_77; 
lean_dec(x_41);
x_75 = lean_ctor_get(x_72, 0);
lean_inc(x_75);
if (lean_is_exclusive(x_72)) {
 lean_ctor_release(x_72, 0);
 x_76 = x_72;
} else {
 lean_dec_ref(x_72);
 x_76 = lean_box(0);
}
if (lean_is_scalar(x_76)) {
 x_77 = lean_alloc_ctor(1, 1, 0);
} else {
 x_77 = x_76;
}
lean_ctor_set(x_77, 0, x_75);
return x_77;
}
}
}
else
{
uint8_t x_78; 
lean_dec(x_43);
lean_dec(x_42);
lean_dec(x_41);
lean_dec_ref(x_2);
x_78 = !lean_is_exclusive(x_46);
if (x_78 == 0)
{
return x_46;
}
else
{
lean_object* x_79; lean_object* x_80; 
x_79 = lean_ctor_get(x_46, 0);
lean_inc(x_79);
lean_dec(x_46);
x_80 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_80, 0, x_79);
return x_80;
}
}
}
else
{
lean_object* x_81; 
x_81 = lean_ctor_get(x_39, 0);
lean_inc(x_81);
lean_dec_ref(x_39);
if (lean_obj_tag(x_81) == 0)
{
lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; 
x_82 = lean_ctor_get(x_81, 0);
lean_inc(x_82);
x_83 = lean_ctor_get(x_81, 1);
lean_inc_ref(x_83);
lean_dec_ref(x_81);
x_84 = l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___closed__0;
x_85 = lean_string_dec_eq(x_83, x_84);
if (x_85 == 0)
{
lean_object* x_86; lean_object* x_87; lean_object* x_88; 
x_86 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_86, 0, x_83);
x_87 = l_Lean_MessageData_ofFormat(x_86);
x_88 = l_Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3___redArg(x_82, x_87, x_2, x_3);
lean_dec(x_82);
return x_88;
}
else
{
lean_object* x_89; 
lean_dec_ref(x_83);
lean_dec_ref(x_2);
x_89 = l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg(x_82);
return x_89;
}
}
else
{
lean_object* x_90; 
lean_dec_ref(x_2);
x_90 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
return x_90;
}
}
}
}
else
{
uint8_t x_95; 
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_14);
lean_dec(x_11);
lean_dec_ref(x_6);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_95 = !lean_is_exclusive(x_20);
if (x_95 == 0)
{
return x_20;
}
else
{
lean_object* x_96; lean_object* x_97; 
x_96 = lean_ctor_get(x_20, 0);
lean_inc(x_96);
lean_dec(x_20);
x_97 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_97, 0, x_96);
return x_97;
}
}
}
else
{
uint8_t x_98; 
lean_dec(x_17);
lean_dec(x_14);
lean_dec(x_11);
lean_dec_ref(x_6);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_98 = !lean_is_exclusive(x_18);
if (x_98 == 0)
{
return x_18;
}
else
{
lean_object* x_99; lean_object* x_100; 
x_99 = lean_ctor_get(x_18, 0);
lean_inc(x_99);
lean_dec(x_18);
x_100 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_100, 0, x_99);
return x_100;
}
}
}
else
{
uint8_t x_101; 
lean_dec(x_14);
lean_dec(x_11);
lean_dec_ref(x_6);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_101 = !lean_is_exclusive(x_15);
if (x_101 == 0)
{
return x_15;
}
else
{
lean_object* x_102; lean_object* x_103; 
x_102 = lean_ctor_get(x_15, 0);
lean_inc(x_102);
lean_dec(x_15);
x_103 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_103, 0, x_102);
return x_103;
}
}
}
else
{
uint8_t x_104; 
lean_dec(x_11);
lean_dec_ref(x_6);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_104 = !lean_is_exclusive(x_12);
if (x_104 == 0)
{
return x_12;
}
else
{
lean_object* x_105; lean_object* x_106; 
x_105 = lean_ctor_get(x_12, 0);
lean_inc(x_105);
lean_dec(x_12);
x_106 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_106, 0, x_105);
return x_106;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg(x_2, x_3, x_4);
return x_6;
}
}
LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
x_4 = l_Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3___redArg(x_2, x_3);
return x_4;
}
}
LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at___00Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3_spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
uint8_t x_7; 
x_7 = l_Lean_PersistentHashMap_containsAtAux___at___00Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3_spec__3___redArg(x_2, x_5, x_6);
return x_7;
}
}
LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3(lean_object* x_1, lean_object* x_2, size_t x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; 
x_5 = l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3___redArg(x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_isTracingEnabledFor___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__0___redArg(x_1, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg(x_2);
return x_6;
}
}
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__11(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_9; 
x_9 = l_List_forIn_x27_loop___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__11___redArg(x_1, x_3, x_4, x_6, x_7);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___00Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__8_spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DHashMap_Internal_AssocList_get_x3f___at___00Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__8_spec__8___redArg(x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__8___redArg(x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_liftExcept___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_liftExcept___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__2___redArg(x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElab_spec__16(size_t x_1, size_t x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
x_4 = lean_usize_dec_lt(x_2, x_1);
if (x_4 == 0)
{
return x_3;
}
else
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; size_t x_8; size_t x_9; lean_object* x_10; 
x_5 = lean_array_uget(x_3, x_2);
x_6 = lean_unsigned_to_nat(0u);
x_7 = lean_array_uset(x_3, x_2, x_6);
x_8 = 1;
x_9 = lean_usize_add(x_2, x_8);
x_10 = lean_array_uset(x_7, x_2, x_5);
x_2 = x_9;
x_3 = x_10;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElab_spec__15(size_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint8_t x_7; 
x_7 = lean_usize_dec_lt(x_2, x_1);
if (x_7 == 0)
{
lean_object* x_8; 
lean_dec_ref(x_4);
x_8 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_8, 0, x_3);
return x_8;
}
else
{
lean_object* x_9; lean_object* x_10; 
x_9 = lean_array_uget(x_3, x_2);
lean_inc_ref(x_4);
x_10 = l_Lean_Elab_Command_expandMacroArg(x_9, x_4, x_5);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16; 
x_11 = lean_ctor_get(x_10, 0);
lean_inc(x_11);
lean_dec_ref(x_10);
x_12 = lean_unsigned_to_nat(0u);
x_13 = lean_array_uset(x_3, x_2, x_12);
x_14 = 1;
x_15 = lean_usize_add(x_2, x_14);
x_16 = lean_array_uset(x_13, x_2, x_11);
x_2 = x_15;
x_3 = x_16;
goto _start;
}
else
{
uint8_t x_18; 
lean_dec_ref(x_4);
lean_dec_ref(x_3);
x_18 = !lean_is_exclusive(x_10);
if (x_18 == 0)
{
return x_10;
}
else
{
lean_object* x_19; lean_object* x_20; 
x_19 = lean_ctor_get(x_10, 0);
lean_inc(x_19);
lean_dec(x_10);
x_20 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_20, 0, x_19);
return x_20;
}
}
}
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElab___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("quot", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElab___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("`(", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElab___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("namedPrio", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElab___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabElab___closed__2;
x_2 = l_Lean_Elab_Command_elabElabRulesAux___closed__30;
x_3 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__5;
x_4 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__4;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElab___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("priority", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElab___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(10u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElab___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("namedName", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElab___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabElab___closed__6;
x_2 = l_Lean_Elab_Command_elabElabRulesAux___closed__30;
x_3 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__5;
x_4 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__4;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElab___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("name", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElab___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elab", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElab___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabElab___closed__9;
x_2 = l_Lean_Elab_Command_elabElabRulesAux___closed__30;
x_3 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__5;
x_4 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__4;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElab___closed__11() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("precedence", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElab___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Elab_Command_elabElab___closed__11;
x_2 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__5;
x_3 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__4;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElab___closed__13() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("syntax", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElab___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabElab___closed__13;
x_2 = l_Lean_Elab_Command_elabElabRulesAux___closed__30;
x_3 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__5;
x_4 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__4;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElab___closed__15() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elabTail", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElab___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabElab___closed__15;
x_2 = l_Lean_Elab_Command_elabElabRulesAux___closed__30;
x_3 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__5;
x_4 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__4;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElab(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; size_t x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; uint8_t x_120; lean_object* x_121; lean_object* x_122; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; size_t x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; uint8_t x_198; lean_object* x_199; lean_object* x_216; uint8_t x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; size_t x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; uint8_t x_240; lean_object* x_241; lean_object* x_242; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; size_t x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; uint8_t x_278; lean_object* x_279; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; size_t x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; uint8_t x_312; lean_object* x_313; lean_object* x_314; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; 
x_5 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__4;
x_6 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__5;
x_216 = l_Lean_Elab_Command_elabElab___closed__10;
lean_inc(x_1);
x_217 = l_Lean_Syntax_isOfKind(x_1, x_216);
if (x_217 == 0)
{
lean_object* x_403; 
lean_dec(x_3);
lean_dec_ref(x_2);
lean_dec(x_1);
x_403 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
return x_403;
}
else
{
lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_505; uint8_t x_506; 
x_404 = lean_unsigned_to_nat(0u);
x_505 = l_Lean_Syntax_getArg(x_1, x_404);
x_506 = l_Lean_Syntax_isNone(x_505);
if (x_506 == 0)
{
lean_object* x_507; uint8_t x_508; 
x_507 = lean_unsigned_to_nat(1u);
lean_inc(x_505);
x_508 = l_Lean_Syntax_matchesNull(x_505, x_507);
if (x_508 == 0)
{
lean_object* x_509; 
lean_dec(x_505);
lean_dec(x_3);
lean_dec_ref(x_2);
lean_dec(x_1);
x_509 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
return x_509;
}
else
{
lean_object* x_510; lean_object* x_511; uint8_t x_512; 
x_510 = l_Lean_Syntax_getArg(x_505, x_404);
lean_dec(x_505);
x_511 = l_Lean_Elab_Command_elabElabRules___lam__1___closed__7;
lean_inc(x_510);
x_512 = l_Lean_Syntax_isOfKind(x_510, x_511);
if (x_512 == 0)
{
lean_object* x_513; 
lean_dec(x_510);
lean_dec(x_3);
lean_dec_ref(x_2);
lean_dec(x_1);
x_513 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
return x_513;
}
else
{
lean_object* x_514; 
x_514 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_514, 0, x_510);
x_487 = x_514;
x_488 = x_2;
x_489 = x_3;
x_490 = lean_box(0);
goto block_504;
}
}
}
else
{
lean_object* x_515; 
lean_dec(x_505);
x_515 = lean_box(0);
x_487 = x_515;
x_488 = x_2;
x_489 = x_3;
x_490 = lean_box(0);
goto block_504;
}
block_432:
{
lean_object* x_420; lean_object* x_421; uint8_t x_422; 
x_420 = lean_unsigned_to_nat(6u);
x_421 = l_Lean_Syntax_getArg(x_1, x_420);
x_422 = l_Lean_Syntax_isNone(x_421);
if (x_422 == 0)
{
uint8_t x_423; 
lean_inc(x_421);
x_423 = l_Lean_Syntax_matchesNull(x_421, x_407);
if (x_423 == 0)
{
lean_object* x_424; 
lean_dec(x_421);
lean_dec(x_418);
lean_dec_ref(x_417);
lean_dec(x_416);
lean_dec(x_414);
lean_dec(x_413);
lean_dec_ref(x_412);
lean_dec(x_411);
lean_dec(x_410);
lean_dec(x_409);
lean_dec(x_405);
lean_dec(x_1);
x_424 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
return x_424;
}
else
{
lean_object* x_425; lean_object* x_426; uint8_t x_427; 
x_425 = l_Lean_Syntax_getArg(x_421, x_404);
lean_dec(x_421);
x_426 = l_Lean_Elab_Command_elabElab___closed__3;
lean_inc(x_425);
x_427 = l_Lean_Syntax_isOfKind(x_425, x_426);
if (x_427 == 0)
{
lean_object* x_428; 
lean_dec(x_425);
lean_dec(x_418);
lean_dec_ref(x_417);
lean_dec(x_416);
lean_dec(x_414);
lean_dec(x_413);
lean_dec_ref(x_412);
lean_dec(x_411);
lean_dec(x_410);
lean_dec(x_409);
lean_dec(x_405);
lean_dec(x_1);
x_428 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
return x_428;
}
else
{
lean_object* x_429; lean_object* x_430; 
x_429 = l_Lean_Syntax_getArg(x_425, x_408);
lean_dec(x_425);
x_430 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_430, 0, x_429);
x_372 = x_406;
x_373 = x_405;
x_374 = x_407;
x_375 = x_416;
x_376 = x_410;
x_377 = x_409;
x_378 = x_413;
x_379 = x_412;
x_380 = x_411;
x_381 = x_414;
x_382 = x_415;
x_383 = x_430;
x_384 = x_417;
x_385 = x_418;
x_386 = lean_box(0);
goto block_402;
}
}
}
else
{
lean_object* x_431; 
lean_dec(x_421);
x_431 = lean_box(0);
x_372 = x_406;
x_373 = x_405;
x_374 = x_407;
x_375 = x_416;
x_376 = x_410;
x_377 = x_409;
x_378 = x_413;
x_379 = x_412;
x_380 = x_411;
x_381 = x_414;
x_382 = x_415;
x_383 = x_431;
x_384 = x_417;
x_385 = x_418;
x_386 = lean_box(0);
goto block_402;
}
}
block_459:
{
lean_object* x_447; lean_object* x_448; uint8_t x_449; 
x_447 = lean_unsigned_to_nat(5u);
x_448 = l_Lean_Syntax_getArg(x_1, x_447);
x_449 = l_Lean_Syntax_isNone(x_448);
if (x_449 == 0)
{
uint8_t x_450; 
lean_inc(x_448);
x_450 = l_Lean_Syntax_matchesNull(x_448, x_434);
if (x_450 == 0)
{
lean_object* x_451; 
lean_dec(x_448);
lean_dec(x_445);
lean_dec_ref(x_444);
lean_dec(x_443);
lean_dec(x_441);
lean_dec(x_440);
lean_dec_ref(x_439);
lean_dec(x_438);
lean_dec(x_437);
lean_dec(x_436);
lean_dec(x_1);
x_451 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
return x_451;
}
else
{
lean_object* x_452; lean_object* x_453; uint8_t x_454; 
x_452 = l_Lean_Syntax_getArg(x_448, x_404);
lean_dec(x_448);
x_453 = l_Lean_Elab_Command_elabElab___closed__7;
lean_inc(x_452);
x_454 = l_Lean_Syntax_isOfKind(x_452, x_453);
if (x_454 == 0)
{
lean_object* x_455; 
lean_dec(x_452);
lean_dec(x_445);
lean_dec_ref(x_444);
lean_dec(x_443);
lean_dec(x_441);
lean_dec(x_440);
lean_dec_ref(x_439);
lean_dec(x_438);
lean_dec(x_437);
lean_dec(x_436);
lean_dec(x_1);
x_455 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
return x_455;
}
else
{
lean_object* x_456; lean_object* x_457; 
x_456 = l_Lean_Syntax_getArg(x_452, x_435);
lean_dec(x_452);
x_457 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_457, 0, x_456);
x_405 = x_443;
x_406 = x_433;
x_407 = x_434;
x_408 = x_435;
x_409 = x_437;
x_410 = x_436;
x_411 = x_440;
x_412 = x_439;
x_413 = x_438;
x_414 = x_441;
x_415 = x_442;
x_416 = x_457;
x_417 = x_444;
x_418 = x_445;
x_419 = lean_box(0);
goto block_432;
}
}
}
else
{
lean_object* x_458; 
lean_dec(x_448);
x_458 = lean_box(0);
x_405 = x_443;
x_406 = x_433;
x_407 = x_434;
x_408 = x_435;
x_409 = x_437;
x_410 = x_436;
x_411 = x_440;
x_412 = x_439;
x_413 = x_438;
x_414 = x_441;
x_415 = x_442;
x_416 = x_458;
x_417 = x_444;
x_418 = x_445;
x_419 = lean_box(0);
goto block_432;
}
}
block_486:
{
lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; uint8_t x_470; 
x_466 = lean_unsigned_to_nat(2u);
x_467 = l_Lean_Syntax_getArg(x_1, x_466);
x_468 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__6;
x_469 = l_Lean_Elab_Command_elabElabRules___lam__1___closed__4;
lean_inc(x_467);
x_470 = l_Lean_Syntax_isOfKind(x_467, x_469);
if (x_470 == 0)
{
lean_object* x_471; 
lean_dec(x_467);
lean_dec(x_464);
lean_dec_ref(x_463);
lean_dec(x_462);
lean_dec(x_461);
lean_dec(x_1);
x_471 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
return x_471;
}
else
{
lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; uint8_t x_476; 
x_472 = lean_unsigned_to_nat(3u);
x_473 = l_Lean_Syntax_getArg(x_1, x_472);
x_474 = lean_unsigned_to_nat(4u);
x_475 = l_Lean_Syntax_getArg(x_1, x_474);
x_476 = l_Lean_Syntax_isNone(x_475);
if (x_476 == 0)
{
uint8_t x_477; 
lean_inc(x_475);
x_477 = l_Lean_Syntax_matchesNull(x_475, x_460);
if (x_477 == 0)
{
lean_object* x_478; 
lean_dec(x_475);
lean_dec(x_473);
lean_dec(x_467);
lean_dec(x_464);
lean_dec_ref(x_463);
lean_dec(x_462);
lean_dec(x_461);
lean_dec(x_1);
x_478 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
return x_478;
}
else
{
lean_object* x_479; lean_object* x_480; uint8_t x_481; 
x_479 = l_Lean_Syntax_getArg(x_475, x_404);
lean_dec(x_475);
x_480 = l_Lean_Elab_Command_elabElab___closed__12;
lean_inc(x_479);
x_481 = l_Lean_Syntax_isOfKind(x_479, x_480);
if (x_481 == 0)
{
lean_object* x_482; 
lean_dec(x_479);
lean_dec(x_473);
lean_dec(x_467);
lean_dec(x_464);
lean_dec_ref(x_463);
lean_dec(x_462);
lean_dec(x_461);
lean_dec(x_1);
x_482 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
return x_482;
}
else
{
lean_object* x_483; lean_object* x_484; 
x_483 = l_Lean_Syntax_getArg(x_479, x_460);
lean_dec(x_479);
x_484 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_484, 0, x_483);
x_433 = x_466;
x_434 = x_460;
x_435 = x_472;
x_436 = x_467;
x_437 = x_469;
x_438 = x_461;
x_439 = x_468;
x_440 = x_473;
x_441 = x_462;
x_442 = x_474;
x_443 = x_484;
x_444 = x_463;
x_445 = x_464;
x_446 = lean_box(0);
goto block_459;
}
}
}
else
{
lean_object* x_485; 
lean_dec(x_475);
x_485 = lean_box(0);
x_433 = x_466;
x_434 = x_460;
x_435 = x_472;
x_436 = x_467;
x_437 = x_469;
x_438 = x_461;
x_439 = x_468;
x_440 = x_473;
x_441 = x_462;
x_442 = x_474;
x_443 = x_485;
x_444 = x_463;
x_445 = x_464;
x_446 = lean_box(0);
goto block_459;
}
}
}
block_504:
{
lean_object* x_491; lean_object* x_492; uint8_t x_493; 
x_491 = lean_unsigned_to_nat(1u);
x_492 = l_Lean_Syntax_getArg(x_1, x_491);
x_493 = l_Lean_Syntax_isNone(x_492);
if (x_493 == 0)
{
uint8_t x_494; 
lean_inc(x_492);
x_494 = l_Lean_Syntax_matchesNull(x_492, x_491);
if (x_494 == 0)
{
lean_object* x_495; 
lean_dec(x_492);
lean_dec(x_489);
lean_dec_ref(x_488);
lean_dec(x_487);
lean_dec(x_1);
x_495 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
return x_495;
}
else
{
lean_object* x_496; lean_object* x_497; uint8_t x_498; 
x_496 = l_Lean_Syntax_getArg(x_492, x_404);
lean_dec(x_492);
x_497 = l_Lean_Elab_Command_elabElabRules___lam__1___closed__5;
lean_inc(x_496);
x_498 = l_Lean_Syntax_isOfKind(x_496, x_497);
if (x_498 == 0)
{
lean_object* x_499; 
lean_dec(x_496);
lean_dec(x_489);
lean_dec_ref(x_488);
lean_dec(x_487);
lean_dec(x_1);
x_499 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
return x_499;
}
else
{
lean_object* x_500; lean_object* x_501; lean_object* x_502; 
x_500 = l_Lean_Syntax_getArg(x_496, x_491);
lean_dec(x_496);
x_501 = l_Lean_Syntax_getArgs(x_500);
lean_dec(x_500);
x_502 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_502, 0, x_501);
x_460 = x_491;
x_461 = x_487;
x_462 = x_502;
x_463 = x_488;
x_464 = x_489;
x_465 = lean_box(0);
goto block_486;
}
}
}
else
{
lean_object* x_503; 
lean_dec(x_492);
x_503 = lean_box(0);
x_460 = x_491;
x_461 = x_487;
x_462 = x_503;
x_463 = x_488;
x_464 = x_489;
x_465 = lean_box(0);
goto block_486;
}
}
}
block_47:
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; 
x_24 = l_Array_append___redArg(x_9, x_23);
lean_dec_ref(x_23);
lean_inc(x_21);
lean_inc(x_20);
x_25 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_25, 0, x_20);
lean_ctor_set(x_25, 1, x_21);
lean_ctor_set(x_25, 2, x_24);
x_26 = l_Lean_Elab_Command_elabElabRulesAux___closed__22;
lean_inc_ref(x_12);
x_27 = l_Lean_Name_mkStr4(x_5, x_6, x_12, x_26);
x_28 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__7;
lean_inc_ref(x_12);
x_29 = l_Lean_Name_mkStr4(x_5, x_6, x_12, x_28);
x_30 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__9;
lean_inc(x_20);
x_31 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_31, 0, x_20);
lean_ctor_set(x_31, 1, x_30);
x_32 = l_Lean_Elab_Command_elabElab___closed__0;
x_33 = l_Lean_Name_mkStr4(x_5, x_6, x_12, x_32);
x_34 = l_Lean_Elab_Command_elabElab___closed__1;
lean_inc(x_20);
x_35 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_35, 0, x_20);
lean_ctor_set(x_35, 1, x_34);
lean_inc(x_20);
x_36 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_36, 0, x_20);
lean_ctor_set(x_36, 1, x_18);
lean_inc(x_20);
x_37 = l_Lean_Syntax_node3(x_20, x_33, x_35, x_13, x_36);
lean_inc(x_21);
lean_inc(x_20);
x_38 = l_Lean_Syntax_node1(x_20, x_21, x_37);
lean_inc(x_21);
lean_inc(x_20);
x_39 = l_Lean_Syntax_node1(x_20, x_21, x_38);
x_40 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__13;
lean_inc(x_20);
x_41 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_41, 0, x_20);
lean_ctor_set(x_41, 1, x_40);
lean_inc(x_20);
x_42 = l_Lean_Syntax_node4(x_20, x_29, x_31, x_39, x_41, x_19);
lean_inc(x_20);
x_43 = l_Lean_Syntax_node1(x_20, x_21, x_42);
lean_inc(x_20);
x_44 = l_Lean_Syntax_node1(x_20, x_27, x_43);
lean_inc(x_10);
x_45 = l_Lean_Syntax_node8(x_20, x_7, x_14, x_10, x_16, x_15, x_10, x_8, x_25, x_44);
x_46 = l_Lean_Elab_Command_elabCommand(x_45, x_22, x_11);
return x_46;
}
block_77:
{
lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; 
lean_inc_ref(x_50);
x_65 = l_Array_append___redArg(x_50, x_64);
lean_dec_ref(x_64);
lean_inc(x_61);
lean_inc(x_59);
x_66 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_66, 0, x_59);
lean_ctor_set(x_66, 1, x_61);
lean_ctor_set(x_66, 2, x_65);
lean_inc_ref(x_50);
lean_inc(x_61);
lean_inc(x_59);
x_67 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_67, 0, x_59);
lean_ctor_set(x_67, 1, x_61);
lean_ctor_set(x_67, 2, x_50);
lean_inc_ref(x_67);
lean_inc(x_59);
x_68 = l_Lean_Syntax_node1(x_59, x_51, x_67);
lean_inc(x_59);
x_69 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_69, 0, x_59);
lean_ctor_set(x_69, 1, x_60);
lean_inc(x_59);
x_70 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_70, 0, x_59);
lean_ctor_set(x_70, 1, x_63);
lean_inc(x_61);
lean_inc(x_59);
x_71 = l_Lean_Syntax_node2(x_59, x_61, x_70, x_48);
if (lean_obj_tag(x_55) == 1)
{
lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; 
x_72 = lean_ctor_get(x_55, 0);
lean_inc(x_72);
lean_dec_ref(x_55);
x_73 = l_Lean_Elab_Command_elabElabRules___lam__0___closed__0;
lean_inc(x_59);
x_74 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_74, 0, x_59);
lean_ctor_set(x_74, 1, x_73);
x_75 = l_Array_mkArray2___redArg(x_74, x_72);
x_7 = x_49;
x_8 = x_71;
x_9 = x_50;
x_10 = x_67;
x_11 = x_52;
x_12 = x_53;
x_13 = x_54;
x_14 = x_66;
x_15 = x_69;
x_16 = x_68;
x_17 = lean_box(0);
x_18 = x_57;
x_19 = x_58;
x_20 = x_59;
x_21 = x_61;
x_22 = x_62;
x_23 = x_75;
goto block_47;
}
else
{
lean_object* x_76; 
lean_dec(x_55);
x_76 = l_Lean_Elab_Command_elabElabRulesAux___closed__33;
x_7 = x_49;
x_8 = x_71;
x_9 = x_50;
x_10 = x_67;
x_11 = x_52;
x_12 = x_53;
x_13 = x_54;
x_14 = x_66;
x_15 = x_69;
x_16 = x_68;
x_17 = lean_box(0);
x_18 = x_57;
x_19 = x_58;
x_20 = x_59;
x_21 = x_61;
x_22 = x_62;
x_23 = x_76;
goto block_47;
}
}
block_98:
{
lean_object* x_93; lean_object* x_94; 
x_93 = l_Lean_Elab_Command_elabElabRules___lam__1___closed__0;
x_94 = l_Lean_Elab_Command_elabElabRules___lam__1___closed__1;
if (lean_obj_tag(x_86) == 1)
{
lean_object* x_95; lean_object* x_96; 
x_95 = lean_ctor_get(x_86, 0);
lean_inc(x_95);
lean_dec_ref(x_86);
x_96 = l_Array_mkArray1___redArg(x_95);
x_48 = x_78;
x_49 = x_94;
x_50 = x_79;
x_51 = x_80;
x_52 = x_81;
x_53 = x_82;
x_54 = x_83;
x_55 = x_84;
x_56 = lean_box(0);
x_57 = x_85;
x_58 = x_87;
x_59 = x_88;
x_60 = x_93;
x_61 = x_89;
x_62 = x_90;
x_63 = x_91;
x_64 = x_96;
goto block_77;
}
else
{
lean_object* x_97; 
lean_dec(x_86);
x_97 = l_Lean_Elab_Command_elabElabRulesAux___closed__33;
x_48 = x_78;
x_49 = x_94;
x_50 = x_79;
x_51 = x_80;
x_52 = x_81;
x_53 = x_82;
x_54 = x_83;
x_55 = x_84;
x_56 = lean_box(0);
x_57 = x_85;
x_58 = x_87;
x_59 = x_88;
x_60 = x_93;
x_61 = x_89;
x_62 = x_90;
x_63 = x_91;
x_64 = x_97;
goto block_77;
}
}
block_175:
{
lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; size_t x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; 
lean_inc_ref(x_102);
x_123 = l_Array_append___redArg(x_102, x_122);
lean_dec_ref(x_122);
lean_inc(x_117);
lean_inc(x_110);
x_124 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_124, 0, x_110);
lean_ctor_set(x_124, 1, x_117);
lean_ctor_set(x_124, 2, x_123);
x_125 = l_Lean_Elab_Command_elabElab___closed__3;
x_126 = l_Lean_Elab_Command_elabElabRules___lam__0___closed__1;
lean_inc(x_110);
x_127 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_127, 0, x_110);
lean_ctor_set(x_127, 1, x_126);
x_128 = l_Lean_Elab_Command_elabElab___closed__4;
lean_inc(x_110);
x_129 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_129, 0, x_110);
lean_ctor_set(x_129, 1, x_128);
x_130 = l_Lean_Elab_Command_elabElabRulesAux___closed__11;
lean_inc(x_110);
x_131 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_131, 0, x_110);
lean_ctor_set(x_131, 1, x_130);
x_132 = l_Nat_reprFast(x_116);
x_133 = lean_box(2);
x_134 = l_Lean_Syntax_mkNumLit(x_132, x_133);
x_135 = l_Lean_Elab_Command_elabElabRules___lam__0___closed__3;
lean_inc(x_110);
x_136 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_136, 0, x_110);
lean_ctor_set(x_136, 1, x_135);
lean_inc(x_110);
x_137 = l_Lean_Syntax_node5(x_110, x_125, x_127, x_129, x_131, x_134, x_136);
lean_inc(x_117);
lean_inc(x_110);
x_138 = l_Lean_Syntax_node1(x_110, x_117, x_137);
x_139 = lean_array_size(x_111);
x_140 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElab_spec__16(x_139, x_113, x_111);
lean_inc_ref(x_102);
x_141 = l_Array_append___redArg(x_102, x_140);
lean_dec_ref(x_140);
lean_inc(x_117);
lean_inc(x_110);
x_142 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_142, 0, x_110);
lean_ctor_set(x_142, 1, x_117);
lean_ctor_set(x_142, 2, x_141);
x_143 = l_Lean_Elab_Command_elabElabRulesAux___closed__7;
lean_inc(x_110);
x_144 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_144, 0, x_110);
lean_ctor_set(x_144, 1, x_143);
x_145 = l_Lean_Elab_Command_elabElab___closed__5;
x_146 = lean_array_push(x_145, x_104);
x_147 = lean_array_push(x_146, x_101);
x_148 = lean_array_push(x_147, x_105);
x_149 = lean_array_push(x_148, x_119);
x_150 = lean_array_push(x_149, x_118);
x_151 = lean_array_push(x_150, x_124);
x_152 = lean_array_push(x_151, x_138);
x_153 = lean_array_push(x_152, x_142);
x_154 = lean_array_push(x_153, x_144);
lean_inc(x_99);
x_155 = lean_array_push(x_154, x_99);
x_156 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_156, 0, x_110);
lean_ctor_set(x_156, 1, x_109);
lean_ctor_set(x_156, 2, x_155);
lean_inc(x_107);
lean_inc_ref(x_121);
x_157 = l_Lean_Elab_Command_elabSyntax(x_156, x_121, x_107);
if (lean_obj_tag(x_157) == 0)
{
lean_object* x_158; lean_object* x_159; 
x_158 = lean_ctor_get(x_157, 0);
lean_inc(x_158);
lean_dec_ref(x_157);
x_159 = l_Lean_Elab_Command_getRef___redArg(x_121);
if (lean_obj_tag(x_159) == 0)
{
lean_object* x_160; lean_object* x_161; 
x_160 = lean_ctor_get(x_159, 0);
lean_inc(x_160);
lean_dec_ref(x_159);
x_161 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_121);
if (lean_obj_tag(x_161) == 0)
{
lean_object* x_162; lean_object* x_163; lean_object* x_164; 
lean_dec_ref(x_161);
x_162 = lean_ctor_get(x_121, 5);
x_163 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_163, 0, x_133);
lean_ctor_set(x_163, 1, x_158);
lean_ctor_set(x_163, 2, x_108);
x_164 = l_Lean_SourceInfo_fromRef(x_160, x_120);
lean_dec(x_160);
if (lean_obj_tag(x_162) == 0)
{
lean_object* x_165; 
x_165 = l_Lean_getMainModule___at___00Lean_Elab_Command_elabElabRulesAux_spec__1___redArg(x_107);
lean_dec_ref(x_165);
x_78 = x_99;
x_79 = x_102;
x_80 = x_103;
x_81 = x_107;
x_82 = x_106;
x_83 = x_163;
x_84 = x_112;
x_85 = x_135;
x_86 = x_115;
x_87 = x_114;
x_88 = x_164;
x_89 = x_117;
x_90 = x_121;
x_91 = x_143;
x_92 = lean_box(0);
goto block_98;
}
else
{
x_78 = x_99;
x_79 = x_102;
x_80 = x_103;
x_81 = x_107;
x_82 = x_106;
x_83 = x_163;
x_84 = x_112;
x_85 = x_135;
x_86 = x_115;
x_87 = x_114;
x_88 = x_164;
x_89 = x_117;
x_90 = x_121;
x_91 = x_143;
x_92 = lean_box(0);
goto block_98;
}
}
else
{
uint8_t x_166; 
lean_dec(x_160);
lean_dec(x_158);
lean_dec_ref(x_121);
lean_dec(x_117);
lean_dec(x_115);
lean_dec(x_114);
lean_dec(x_112);
lean_dec_ref(x_108);
lean_dec(x_107);
lean_dec_ref(x_106);
lean_dec(x_103);
lean_dec_ref(x_102);
lean_dec(x_99);
x_166 = !lean_is_exclusive(x_161);
if (x_166 == 0)
{
return x_161;
}
else
{
lean_object* x_167; lean_object* x_168; 
x_167 = lean_ctor_get(x_161, 0);
lean_inc(x_167);
lean_dec(x_161);
x_168 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_168, 0, x_167);
return x_168;
}
}
}
else
{
uint8_t x_169; 
lean_dec(x_158);
lean_dec_ref(x_121);
lean_dec(x_117);
lean_dec(x_115);
lean_dec(x_114);
lean_dec(x_112);
lean_dec_ref(x_108);
lean_dec(x_107);
lean_dec_ref(x_106);
lean_dec(x_103);
lean_dec_ref(x_102);
lean_dec(x_99);
x_169 = !lean_is_exclusive(x_159);
if (x_169 == 0)
{
return x_159;
}
else
{
lean_object* x_170; lean_object* x_171; 
x_170 = lean_ctor_get(x_159, 0);
lean_inc(x_170);
lean_dec(x_159);
x_171 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_171, 0, x_170);
return x_171;
}
}
}
else
{
uint8_t x_172; 
lean_dec_ref(x_121);
lean_dec(x_117);
lean_dec(x_115);
lean_dec(x_114);
lean_dec(x_112);
lean_dec_ref(x_108);
lean_dec(x_107);
lean_dec_ref(x_106);
lean_dec(x_103);
lean_dec_ref(x_102);
lean_dec(x_99);
x_172 = !lean_is_exclusive(x_157);
if (x_172 == 0)
{
return x_157;
}
else
{
lean_object* x_173; lean_object* x_174; 
x_173 = lean_ctor_get(x_157, 0);
lean_inc(x_173);
lean_dec(x_157);
x_174 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_174, 0, x_173);
return x_174;
}
}
}
block_215:
{
lean_object* x_200; lean_object* x_201; 
lean_inc_ref(x_179);
x_200 = l_Array_append___redArg(x_179, x_199);
lean_dec_ref(x_199);
lean_inc(x_195);
lean_inc(x_188);
x_201 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_201, 0, x_188);
lean_ctor_set(x_201, 1, x_195);
lean_ctor_set(x_201, 2, x_200);
if (lean_obj_tag(x_190) == 1)
{
lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; 
x_202 = lean_ctor_get(x_190, 0);
lean_inc(x_202);
lean_dec_ref(x_190);
x_203 = l_Lean_Elab_Command_elabElab___closed__7;
x_204 = l_Lean_Elab_Command_elabElabRules___lam__0___closed__1;
lean_inc(x_188);
x_205 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_205, 0, x_188);
lean_ctor_set(x_205, 1, x_204);
x_206 = l_Lean_Elab_Command_elabElab___closed__8;
lean_inc(x_188);
x_207 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_207, 0, x_188);
lean_ctor_set(x_207, 1, x_206);
x_208 = l_Lean_Elab_Command_elabElabRulesAux___closed__11;
lean_inc(x_188);
x_209 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_209, 0, x_188);
lean_ctor_set(x_209, 1, x_208);
x_210 = l_Lean_Elab_Command_elabElabRules___lam__0___closed__3;
lean_inc(x_188);
x_211 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_211, 0, x_188);
lean_ctor_set(x_211, 1, x_210);
lean_inc(x_188);
x_212 = l_Lean_Syntax_node5(x_188, x_203, x_205, x_207, x_209, x_202, x_211);
x_213 = l_Array_mkArray1___redArg(x_212);
x_99 = x_176;
x_100 = lean_box(0);
x_101 = x_178;
x_102 = x_179;
x_103 = x_180;
x_104 = x_181;
x_105 = x_182;
x_106 = x_183;
x_107 = x_184;
x_108 = x_185;
x_109 = x_186;
x_110 = x_188;
x_111 = x_187;
x_112 = x_189;
x_113 = x_191;
x_114 = x_193;
x_115 = x_192;
x_116 = x_194;
x_117 = x_195;
x_118 = x_201;
x_119 = x_196;
x_120 = x_198;
x_121 = x_197;
x_122 = x_213;
goto block_175;
}
else
{
lean_object* x_214; 
lean_dec(x_190);
x_214 = l_Lean_Elab_Command_elabElabRulesAux___closed__33;
x_99 = x_176;
x_100 = lean_box(0);
x_101 = x_178;
x_102 = x_179;
x_103 = x_180;
x_104 = x_181;
x_105 = x_182;
x_106 = x_183;
x_107 = x_184;
x_108 = x_185;
x_109 = x_186;
x_110 = x_188;
x_111 = x_187;
x_112 = x_189;
x_113 = x_191;
x_114 = x_193;
x_115 = x_192;
x_116 = x_194;
x_117 = x_195;
x_118 = x_201;
x_119 = x_196;
x_120 = x_198;
x_121 = x_197;
x_122 = x_214;
goto block_175;
}
}
block_254:
{
lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; 
lean_inc_ref(x_221);
x_243 = l_Array_append___redArg(x_221, x_242);
lean_dec_ref(x_242);
lean_inc(x_239);
lean_inc(x_232);
x_244 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_244, 0, x_232);
lean_ctor_set(x_244, 1, x_239);
lean_ctor_set(x_244, 2, x_243);
x_245 = l_Lean_SourceInfo_fromRef(x_225, x_217);
lean_dec(x_225);
x_246 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_246, 0, x_245);
lean_ctor_set(x_246, 1, x_229);
if (lean_obj_tag(x_218) == 1)
{
lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; 
x_247 = lean_ctor_get(x_218, 0);
lean_inc(x_247);
lean_dec_ref(x_218);
x_248 = l_Lean_Elab_Command_elabElab___closed__12;
x_249 = l_Lean_Elab_Command_elabElabRulesAux___closed__7;
lean_inc(x_232);
x_250 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_250, 0, x_232);
lean_ctor_set(x_250, 1, x_249);
lean_inc(x_232);
x_251 = l_Lean_Syntax_node2(x_232, x_248, x_250, x_247);
x_252 = l_Array_mkArray1___redArg(x_251);
x_176 = x_219;
x_177 = lean_box(0);
x_178 = x_244;
x_179 = x_221;
x_180 = x_222;
x_181 = x_223;
x_182 = x_224;
x_183 = x_226;
x_184 = x_227;
x_185 = x_230;
x_186 = x_228;
x_187 = x_231;
x_188 = x_232;
x_189 = x_233;
x_190 = x_234;
x_191 = x_235;
x_192 = x_237;
x_193 = x_236;
x_194 = x_238;
x_195 = x_239;
x_196 = x_246;
x_197 = x_241;
x_198 = x_240;
x_199 = x_252;
goto block_215;
}
else
{
lean_object* x_253; 
lean_dec(x_218);
x_253 = l_Lean_Elab_Command_elabElabRulesAux___closed__33;
x_176 = x_219;
x_177 = lean_box(0);
x_178 = x_244;
x_179 = x_221;
x_180 = x_222;
x_181 = x_223;
x_182 = x_224;
x_183 = x_226;
x_184 = x_227;
x_185 = x_230;
x_186 = x_228;
x_187 = x_231;
x_188 = x_232;
x_189 = x_233;
x_190 = x_234;
x_191 = x_235;
x_192 = x_237;
x_193 = x_236;
x_194 = x_238;
x_195 = x_239;
x_196 = x_246;
x_197 = x_241;
x_198 = x_240;
x_199 = x_253;
goto block_215;
}
}
block_294:
{
lean_object* x_280; lean_object* x_281; 
lean_inc_ref(x_258);
x_280 = l_Array_append___redArg(x_258, x_279);
lean_dec_ref(x_279);
lean_inc(x_276);
lean_inc(x_269);
x_281 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_281, 0, x_269);
lean_ctor_set(x_281, 1, x_276);
lean_ctor_set(x_281, 2, x_280);
if (lean_obj_tag(x_264) == 1)
{
lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; 
x_282 = lean_ctor_get(x_264, 0);
lean_inc(x_282);
lean_dec_ref(x_264);
x_283 = l_Lean_Elab_Command_elabElabRulesAux___closed__0;
lean_inc_ref(x_262);
x_284 = l_Lean_Name_mkStr4(x_5, x_6, x_262, x_283);
x_285 = l_Lean_Elab_Command_elabElabRulesAux___closed__1;
lean_inc(x_269);
x_286 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_286, 0, x_269);
lean_ctor_set(x_286, 1, x_285);
lean_inc_ref(x_258);
x_287 = l_Array_append___redArg(x_258, x_282);
lean_dec(x_282);
lean_inc(x_276);
lean_inc(x_269);
x_288 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_288, 0, x_269);
lean_ctor_set(x_288, 1, x_276);
lean_ctor_set(x_288, 2, x_287);
x_289 = l_Lean_Elab_Command_elabElabRulesAux___closed__3;
lean_inc(x_269);
x_290 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_290, 0, x_269);
lean_ctor_set(x_290, 1, x_289);
lean_inc(x_269);
x_291 = l_Lean_Syntax_node3(x_269, x_284, x_286, x_288, x_290);
x_292 = l_Array_mkArray1___redArg(x_291);
x_218 = x_255;
x_219 = x_256;
x_220 = lean_box(0);
x_221 = x_258;
x_222 = x_259;
x_223 = x_281;
x_224 = x_260;
x_225 = x_261;
x_226 = x_262;
x_227 = x_263;
x_228 = x_266;
x_229 = x_267;
x_230 = x_265;
x_231 = x_268;
x_232 = x_269;
x_233 = x_270;
x_234 = x_271;
x_235 = x_272;
x_236 = x_274;
x_237 = x_273;
x_238 = x_275;
x_239 = x_276;
x_240 = x_278;
x_241 = x_277;
x_242 = x_292;
goto block_254;
}
else
{
lean_object* x_293; 
lean_dec(x_264);
x_293 = l_Lean_Elab_Command_elabElabRulesAux___closed__33;
x_218 = x_255;
x_219 = x_256;
x_220 = lean_box(0);
x_221 = x_258;
x_222 = x_259;
x_223 = x_281;
x_224 = x_260;
x_225 = x_261;
x_226 = x_262;
x_227 = x_263;
x_228 = x_266;
x_229 = x_267;
x_230 = x_265;
x_231 = x_268;
x_232 = x_269;
x_233 = x_270;
x_234 = x_271;
x_235 = x_272;
x_236 = x_274;
x_237 = x_273;
x_238 = x_275;
x_239 = x_276;
x_240 = x_278;
x_241 = x_277;
x_242 = x_293;
goto block_254;
}
}
block_322:
{
lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; 
x_315 = l_Lean_Elab_Command_elabElab___closed__13;
x_316 = l_Lean_Elab_Command_elabElab___closed__14;
x_317 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__11;
x_318 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__12;
if (lean_obj_tag(x_310) == 1)
{
lean_object* x_319; lean_object* x_320; 
x_319 = lean_ctor_get(x_310, 0);
lean_inc(x_319);
x_320 = l_Array_mkArray1___redArg(x_319);
x_255 = x_295;
x_256 = x_296;
x_257 = lean_box(0);
x_258 = x_318;
x_259 = x_297;
x_260 = x_298;
x_261 = x_299;
x_262 = x_300;
x_263 = x_301;
x_264 = x_302;
x_265 = x_303;
x_266 = x_316;
x_267 = x_315;
x_268 = x_304;
x_269 = x_305;
x_270 = x_306;
x_271 = x_307;
x_272 = x_308;
x_273 = x_310;
x_274 = x_309;
x_275 = x_311;
x_276 = x_317;
x_277 = x_313;
x_278 = x_312;
x_279 = x_320;
goto block_294;
}
else
{
lean_object* x_321; 
x_321 = l_Lean_Elab_Command_elabElabRulesAux___closed__33;
x_255 = x_295;
x_256 = x_296;
x_257 = lean_box(0);
x_258 = x_318;
x_259 = x_297;
x_260 = x_298;
x_261 = x_299;
x_262 = x_300;
x_263 = x_301;
x_264 = x_302;
x_265 = x_303;
x_266 = x_316;
x_267 = x_315;
x_268 = x_304;
x_269 = x_305;
x_270 = x_306;
x_271 = x_307;
x_272 = x_308;
x_273 = x_310;
x_274 = x_309;
x_275 = x_311;
x_276 = x_317;
x_277 = x_313;
x_278 = x_312;
x_279 = x_321;
goto block_294;
}
}
block_371:
{
lean_object* x_340; lean_object* x_341; 
x_340 = lean_alloc_closure((void*)(l_Lean_evalOptPrio), 3, 1);
lean_closure_set(x_340, 0, x_333);
lean_inc_ref(x_337);
x_341 = l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg(x_340, x_337, x_338);
if (lean_obj_tag(x_341) == 0)
{
lean_object* x_342; lean_object* x_343; size_t x_344; size_t x_345; lean_object* x_346; 
x_342 = lean_ctor_get(x_341, 0);
lean_inc(x_342);
lean_dec_ref(x_341);
x_343 = l_Lean_Syntax_getArgs(x_325);
lean_dec(x_325);
x_344 = lean_array_size(x_343);
x_345 = 0;
lean_inc_ref(x_337);
x_346 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElab_spec__15(x_344, x_345, x_343, x_337, x_338);
if (lean_obj_tag(x_346) == 0)
{
lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; 
x_347 = lean_ctor_get(x_346, 0);
lean_inc(x_347);
lean_dec_ref(x_346);
x_348 = l_Array_unzip___redArg(x_347);
lean_dec(x_347);
x_349 = lean_ctor_get(x_348, 0);
lean_inc(x_349);
x_350 = lean_ctor_get(x_348, 1);
lean_inc(x_350);
lean_dec_ref(x_348);
x_351 = l_Lean_Elab_Command_getRef___redArg(x_337);
if (lean_obj_tag(x_351) == 0)
{
lean_object* x_352; lean_object* x_353; 
x_352 = lean_ctor_get(x_351, 0);
lean_inc(x_352);
lean_dec_ref(x_351);
x_353 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_337);
if (lean_obj_tag(x_353) == 0)
{
lean_object* x_354; lean_object* x_355; uint8_t x_356; lean_object* x_357; 
lean_dec_ref(x_353);
x_354 = lean_ctor_get(x_337, 5);
x_355 = l_Lean_Syntax_getArg(x_332, x_331);
lean_dec(x_332);
x_356 = 0;
x_357 = l_Lean_SourceInfo_fromRef(x_352, x_356);
lean_dec(x_352);
if (lean_obj_tag(x_354) == 0)
{
lean_object* x_358; 
x_358 = l_Lean_getMainModule___at___00Lean_Elab_Command_elabElabRulesAux_spec__1___redArg(x_338);
lean_dec_ref(x_358);
x_295 = x_323;
x_296 = x_324;
x_297 = x_326;
x_298 = x_327;
x_299 = x_328;
x_300 = x_329;
x_301 = x_338;
x_302 = x_330;
x_303 = x_350;
x_304 = x_349;
x_305 = x_357;
x_306 = x_336;
x_307 = x_334;
x_308 = x_345;
x_309 = x_355;
x_310 = x_335;
x_311 = x_342;
x_312 = x_356;
x_313 = x_337;
x_314 = lean_box(0);
goto block_322;
}
else
{
x_295 = x_323;
x_296 = x_324;
x_297 = x_326;
x_298 = x_327;
x_299 = x_328;
x_300 = x_329;
x_301 = x_338;
x_302 = x_330;
x_303 = x_350;
x_304 = x_349;
x_305 = x_357;
x_306 = x_336;
x_307 = x_334;
x_308 = x_345;
x_309 = x_355;
x_310 = x_335;
x_311 = x_342;
x_312 = x_356;
x_313 = x_337;
x_314 = lean_box(0);
goto block_322;
}
}
else
{
uint8_t x_359; 
lean_dec(x_352);
lean_dec(x_350);
lean_dec(x_349);
lean_dec(x_342);
lean_dec(x_338);
lean_dec_ref(x_337);
lean_dec(x_336);
lean_dec(x_335);
lean_dec(x_334);
lean_dec(x_332);
lean_dec(x_330);
lean_dec_ref(x_329);
lean_dec(x_328);
lean_dec(x_327);
lean_dec(x_326);
lean_dec(x_324);
lean_dec(x_323);
x_359 = !lean_is_exclusive(x_353);
if (x_359 == 0)
{
return x_353;
}
else
{
lean_object* x_360; lean_object* x_361; 
x_360 = lean_ctor_get(x_353, 0);
lean_inc(x_360);
lean_dec(x_353);
x_361 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_361, 0, x_360);
return x_361;
}
}
}
else
{
uint8_t x_362; 
lean_dec(x_350);
lean_dec(x_349);
lean_dec(x_342);
lean_dec(x_338);
lean_dec_ref(x_337);
lean_dec(x_336);
lean_dec(x_335);
lean_dec(x_334);
lean_dec(x_332);
lean_dec(x_330);
lean_dec_ref(x_329);
lean_dec(x_328);
lean_dec(x_327);
lean_dec(x_326);
lean_dec(x_324);
lean_dec(x_323);
x_362 = !lean_is_exclusive(x_351);
if (x_362 == 0)
{
return x_351;
}
else
{
lean_object* x_363; lean_object* x_364; 
x_363 = lean_ctor_get(x_351, 0);
lean_inc(x_363);
lean_dec(x_351);
x_364 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_364, 0, x_363);
return x_364;
}
}
}
else
{
uint8_t x_365; 
lean_dec(x_342);
lean_dec(x_338);
lean_dec_ref(x_337);
lean_dec(x_336);
lean_dec(x_335);
lean_dec(x_334);
lean_dec(x_332);
lean_dec(x_330);
lean_dec_ref(x_329);
lean_dec(x_328);
lean_dec(x_327);
lean_dec(x_326);
lean_dec(x_324);
lean_dec(x_323);
x_365 = !lean_is_exclusive(x_346);
if (x_365 == 0)
{
return x_346;
}
else
{
lean_object* x_366; lean_object* x_367; 
x_366 = lean_ctor_get(x_346, 0);
lean_inc(x_366);
lean_dec(x_346);
x_367 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_367, 0, x_366);
return x_367;
}
}
}
else
{
uint8_t x_368; 
lean_dec(x_338);
lean_dec_ref(x_337);
lean_dec(x_336);
lean_dec(x_335);
lean_dec(x_334);
lean_dec(x_332);
lean_dec(x_330);
lean_dec_ref(x_329);
lean_dec(x_328);
lean_dec(x_327);
lean_dec(x_326);
lean_dec(x_325);
lean_dec(x_324);
lean_dec(x_323);
x_368 = !lean_is_exclusive(x_341);
if (x_368 == 0)
{
return x_341;
}
else
{
lean_object* x_369; lean_object* x_370; 
x_369 = lean_ctor_get(x_341, 0);
lean_inc(x_369);
lean_dec(x_341);
x_370 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_370, 0, x_369);
return x_370;
}
}
}
block_402:
{
lean_object* x_387; lean_object* x_388; lean_object* x_389; uint8_t x_390; 
x_387 = lean_unsigned_to_nat(8u);
x_388 = l_Lean_Syntax_getArg(x_1, x_387);
x_389 = l_Lean_Elab_Command_elabElab___closed__16;
lean_inc(x_388);
x_390 = l_Lean_Syntax_isOfKind(x_388, x_389);
if (x_390 == 0)
{
lean_object* x_391; 
lean_dec(x_388);
lean_dec(x_385);
lean_dec_ref(x_384);
lean_dec(x_383);
lean_dec(x_381);
lean_dec(x_380);
lean_dec_ref(x_379);
lean_dec(x_378);
lean_dec(x_377);
lean_dec(x_376);
lean_dec(x_375);
lean_dec(x_373);
lean_dec(x_1);
x_391 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
return x_391;
}
else
{
lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; uint8_t x_396; 
x_392 = lean_unsigned_to_nat(7u);
x_393 = l_Lean_Syntax_getArg(x_1, x_392);
lean_dec(x_1);
x_394 = l_Lean_Syntax_getArg(x_388, x_374);
x_395 = l_Lean_Syntax_getArg(x_388, x_372);
x_396 = l_Lean_Syntax_isNone(x_395);
if (x_396 == 0)
{
uint8_t x_397; 
lean_inc(x_395);
x_397 = l_Lean_Syntax_matchesNull(x_395, x_372);
if (x_397 == 0)
{
lean_object* x_398; 
lean_dec(x_395);
lean_dec(x_394);
lean_dec(x_393);
lean_dec(x_388);
lean_dec(x_385);
lean_dec_ref(x_384);
lean_dec(x_383);
lean_dec(x_381);
lean_dec(x_380);
lean_dec_ref(x_379);
lean_dec(x_378);
lean_dec(x_377);
lean_dec(x_376);
lean_dec(x_375);
lean_dec(x_373);
x_398 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg();
return x_398;
}
else
{
lean_object* x_399; lean_object* x_400; 
x_399 = l_Lean_Syntax_getArg(x_395, x_374);
lean_dec(x_395);
x_400 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_400, 0, x_399);
x_323 = x_373;
x_324 = x_394;
x_325 = x_393;
x_326 = x_377;
x_327 = x_376;
x_328 = x_380;
x_329 = x_379;
x_330 = x_381;
x_331 = x_382;
x_332 = x_388;
x_333 = x_383;
x_334 = x_375;
x_335 = x_378;
x_336 = x_400;
x_337 = x_384;
x_338 = x_385;
x_339 = lean_box(0);
goto block_371;
}
}
else
{
lean_object* x_401; 
lean_dec(x_395);
x_401 = lean_box(0);
x_323 = x_373;
x_324 = x_394;
x_325 = x_393;
x_326 = x_377;
x_327 = x_376;
x_328 = x_380;
x_329 = x_379;
x_330 = x_381;
x_331 = x_382;
x_332 = x_388;
x_333 = x_383;
x_334 = x_375;
x_335 = x_378;
x_336 = x_401;
x_337 = x_384;
x_338 = x_385;
x_339 = lean_box(0);
goto block_371;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0(x_1, x_2, x_3, x_4);
lean_dec(x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; lean_object* x_5; 
x_4 = l_Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3(x_1, x_2, x_3);
lean_dec_ref(x_3);
x_5 = lean_box(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAtAux___at___00Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3_spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
uint8_t x_7; lean_object* x_8; 
x_7 = l_Lean_PersistentHashMap_containsAtAux___at___00Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3_spec__3(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec_ref(x_6);
lean_dec_ref(x_3);
lean_dec_ref(x_2);
x_8 = lean_box(x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
size_t x_5; uint8_t x_6; lean_object* x_7; 
x_5 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_6 = l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3(x_1, x_2, x_5, x_4);
lean_dec_ref(x_4);
x_7 = lean_box(x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_isTracingEnabledFor___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__0(x_1, x_2, x_3);
lean_dec(x_3);
lean_dec_ref(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13(x_1, x_2, x_3, x_4);
lean_dec(x_4);
lean_dec_ref(x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__11___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = l_List_forIn_x27_loop___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__11(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
lean_dec(x_7);
lean_dec_ref(x_6);
lean_dec(x_2);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___00Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__8_spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DHashMap_Internal_AssocList_get_x3f___at___00Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__8_spec__8(x_1, x_2, x_3);
lean_dec(x_3);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__8(x_1, x_2, x_3);
lean_dec(x_3);
lean_dec_ref(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_liftExcept___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_liftExcept___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__2(x_1, x_2, x_3, x_4);
lean_dec_ref(x_3);
lean_dec_ref(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3___redArg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3___redArg(x_1, x_2);
lean_dec_ref(x_2);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_liftExcept___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__2___redArg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_liftExcept___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__2___redArg(x_1, x_2);
lean_dec_ref(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__11___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_List_forIn_x27_loop___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__11___redArg(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_5);
lean_dec_ref(x_4);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___00Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__8_spec__8___redArg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DHashMap_Internal_AssocList_get_x3f___at___00Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__8_spec__8___redArg(x_1, x_2);
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElab_spec__16___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
size_t x_4; size_t x_5; lean_object* x_6; 
x_4 = lean_unbox_usize(x_1);
lean_dec(x_1);
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElab_spec__16(x_4, x_5, x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAtAux___at___00Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3_spec__3___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; lean_object* x_5; 
x_4 = l_Lean_PersistentHashMap_containsAtAux___at___00Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3_spec__3___redArg(x_1, x_2, x_3);
lean_dec_ref(x_3);
lean_dec_ref(x_1);
x_5 = lean_box(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_isTracingEnabledFor___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__0___redArg(x_1, x_2);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__8___redArg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__8___redArg(x_1, x_2);
lean_dec(x_2);
lean_dec_ref(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElab_spec__15___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
size_t x_7; size_t x_8; lean_object* x_9; 
x_7 = lean_unbox_usize(x_1);
lean_dec(x_1);
x_8 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_9 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElab_spec__15(x_7, x_8, x_3, x_4, x_5);
lean_dec(x_5);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
size_t x_4; uint8_t x_5; lean_object* x_6; 
x_4 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_5 = l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3___redArg(x_1, x_4, x_3);
lean_dec_ref(x_3);
x_6 = lean_box(x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
size_t x_12; size_t x_13; lean_object* x_14; 
x_12 = lean_unbox_usize(x_6);
lean_dec(x_6);
x_13 = lean_unbox_usize(x_7);
lean_dec(x_7);
x_14 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__7(x_1, x_2, x_3, x_4, x_5, x_12, x_13, x_8, x_9, x_10);
lean_dec(x_10);
lean_dec_ref(x_9);
lean_dec_ref(x_5);
lean_dec_ref(x_1);
return x_14;
}
}
LEAN_EXPORT lean_object* l_List_forM___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__12___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_List_forM___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__12(x_1, x_2, x_3);
lean_dec(x_3);
lean_dec_ref(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1(x_1, x_2, x_3, x_4);
lean_dec(x_4);
lean_dec_ref(x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint8_t x_6; lean_object* x_7; 
x_6 = lean_unbox(x_2);
x_7 = l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3(x_1, x_6, x_3, x_4);
lean_dec(x_4);
lean_dec_ref(x_3);
return x_7;
}
}
LEAN_EXPORT lean_object* l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
uint8_t x_7; lean_object* x_8; 
x_7 = lean_unbox(x_2);
x_8 = l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3(x_1, x_7, x_3, x_4, x_5);
lean_dec(x_5);
lean_dec_ref(x_4);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg(x_1, x_2, x_3);
lean_dec(x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElab___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Elab_Command_elabElab(x_1, x_2, x_3);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab__1___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elabElab", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab__1___closed__0;
x_2 = l_Lean_Elab_Command_elabElabRulesAux___closed__30;
x_3 = l_Lean_Elab_Command_elabElabRulesAux___closed__29;
x_4 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__4;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab__1() {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules__1___closed__0;
x_3 = l_Lean_Elab_Command_elabElab___closed__10;
x_4 = l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab__1___closed__1;
x_5 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabElab___boxed), 4, 0);
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___redArg(x_2, x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab__1___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab__1();
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_unsigned_to_nat(84u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(31u);
x_2 = lean_unsigned_to_nat(100u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = lean_unsigned_to_nat(31u);
x_2 = l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__1;
x_3 = lean_unsigned_to_nat(0u);
x_4 = l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__0;
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_4);
lean_ctor_set(x_5, 1, x_3);
lean_ctor_set(x_5, 2, x_2);
lean_ctor_set(x_5, 3, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(4u);
x_2 = lean_unsigned_to_nat(84u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(12u);
x_2 = lean_unsigned_to_nat(84u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = lean_unsigned_to_nat(12u);
x_2 = l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__4;
x_3 = lean_unsigned_to_nat(4u);
x_4 = l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__3;
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_4);
lean_ctor_set(x_5, 1, x_3);
lean_ctor_set(x_5, 2, x_2);
lean_ctor_set(x_5, 3, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__5;
x_2 = l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__2;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3() {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab__1___closed__1;
x_3 = l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__6;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3();
return x_2;
}
}
lean_object* initialize_Lean_Elab_MacroArgUtil(uint8_t builtin);
lean_object* initialize_Lean_Elab_AuxDef(uint8_t builtin);
lean_object* initialize_Lean_Elab_Do_Basic(uint8_t builtin);
lean_object* initialize_Lean_Parser_Syntax(uint8_t builtin);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lean_Elab_ElabRules(uint8_t builtin) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Lean_Elab_MacroArgUtil(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Elab_AuxDef(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Elab_Do_Basic(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Parser_Syntax(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__0 = _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__0();
lean_mark_persistent(l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__0);
l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__1 = _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__1();
lean_mark_persistent(l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__1);
l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__2 = _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__2();
lean_mark_persistent(l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__2);
l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__3 = _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__3();
lean_mark_persistent(l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__3);
l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__4 = _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__4();
lean_mark_persistent(l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__4);
l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__5 = _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__5();
lean_mark_persistent(l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4___redArg___closed__5);
l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4_spec__5___closed__0 = _init_l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4_spec__5___closed__0();
lean_mark_persistent(l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4_spec__5___closed__0);
l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4_spec__5___closed__1 = _init_l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4_spec__5___closed__1();
lean_mark_persistent(l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4_spec__5___closed__1);
l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4_spec__5___closed__2 = _init_l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4_spec__5___closed__2();
lean_mark_persistent(l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__4_spec__5___closed__2);
l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg___closed__0 = _init_l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg___closed__0();
lean_mark_persistent(l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg___closed__0);
l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg___closed__1 = _init_l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg___closed__1();
lean_mark_persistent(l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabElabRulesAux_spec__2___redArg___closed__1);
l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__0 = _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__0();
lean_mark_persistent(l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__0);
l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__1 = _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__1();
lean_mark_persistent(l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__1);
l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__2 = _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__2();
lean_mark_persistent(l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__2);
l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__3 = _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__3();
lean_mark_persistent(l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__3);
l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__4 = _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__4();
lean_mark_persistent(l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__4);
l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__5 = _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__5();
lean_mark_persistent(l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__5);
l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__6 = _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__6();
lean_mark_persistent(l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabElabRulesAux_spec__3_spec__3_spec__3___redArg___closed__6);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__0 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__0();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__0);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__1 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__1();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__1);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__2 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__2();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__2);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__3 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__3();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__3);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__4 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__4();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__4);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__5 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__5();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__5);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__6 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__6();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__6);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__7 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__7();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__7);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__8 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__8();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__8);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__9 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__9();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__9);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__10 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__10();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__10);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__11 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__11();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__11);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__12 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__12();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__12);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__13 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__13();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__13);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__14 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__14();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__14);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__15 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__15();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__15);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__16 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__16();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__16);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__17 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__17();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__17);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__18 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__18();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabElabRulesAux_spec__10___closed__18);
l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__0 = _init_l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__0();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__0);
l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__1 = _init_l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__1);
l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__2 = _init_l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__2);
l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__3 = _init_l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__3();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__3);
l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__4 = _init_l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__4();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__4);
l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__5 = _init_l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__5();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___lam__0___closed__5);
l_Lean_Elab_Command_elabElabRulesAux___closed__0 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__0();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__0);
l_Lean_Elab_Command_elabElabRulesAux___closed__1 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__1);
l_Lean_Elab_Command_elabElabRulesAux___closed__2 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__2);
l_Lean_Elab_Command_elabElabRulesAux___closed__3 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__3();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__3);
l_Lean_Elab_Command_elabElabRulesAux___closed__4 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__4();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__4);
l_Lean_Elab_Command_elabElabRulesAux___closed__5 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__5();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__5);
l_Lean_Elab_Command_elabElabRulesAux___closed__6 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__6();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__6);
l_Lean_Elab_Command_elabElabRulesAux___closed__7 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__7();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__7);
l_Lean_Elab_Command_elabElabRulesAux___closed__8 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__8();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__8);
l_Lean_Elab_Command_elabElabRulesAux___closed__9 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__9();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__9);
l_Lean_Elab_Command_elabElabRulesAux___closed__10 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__10();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__10);
l_Lean_Elab_Command_elabElabRulesAux___closed__11 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__11();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__11);
l_Lean_Elab_Command_elabElabRulesAux___closed__12 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__12();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__12);
l_Lean_Elab_Command_elabElabRulesAux___closed__13 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__13();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__13);
l_Lean_Elab_Command_elabElabRulesAux___closed__14 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__14();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__14);
l_Lean_Elab_Command_elabElabRulesAux___closed__15 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__15();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__15);
l_Lean_Elab_Command_elabElabRulesAux___closed__16 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__16();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__16);
l_Lean_Elab_Command_elabElabRulesAux___closed__17 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__17();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__17);
l_Lean_Elab_Command_elabElabRulesAux___closed__18 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__18();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__18);
l_Lean_Elab_Command_elabElabRulesAux___closed__19 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__19();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__19);
l_Lean_Elab_Command_elabElabRulesAux___closed__20 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__20();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__20);
l_Lean_Elab_Command_elabElabRulesAux___closed__21 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__21();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__21);
l_Lean_Elab_Command_elabElabRulesAux___closed__22 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__22();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__22);
l_Lean_Elab_Command_elabElabRulesAux___closed__23 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__23();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__23);
l_Lean_Elab_Command_elabElabRulesAux___closed__24 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__24();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__24);
l_Lean_Elab_Command_elabElabRulesAux___closed__25 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__25();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__25);
l_Lean_Elab_Command_elabElabRulesAux___closed__26 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__26();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__26);
l_Lean_Elab_Command_elabElabRulesAux___closed__27 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__27();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__27);
l_Lean_Elab_Command_elabElabRulesAux___closed__28 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__28();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__28);
l_Lean_Elab_Command_elabElabRulesAux___closed__29 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__29();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__29);
l_Lean_Elab_Command_elabElabRulesAux___closed__30 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__30();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__30);
l_Lean_Elab_Command_elabElabRulesAux___closed__31 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__31();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__31);
l_Lean_Elab_Command_elabElabRulesAux___closed__32 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__32();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__32);
l_Lean_Elab_Command_elabElabRulesAux___closed__33 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__33();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__33);
l_Lean_Elab_Command_elabElabRulesAux___closed__34 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__34();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__34);
l_Lean_Elab_Command_elabElabRulesAux___closed__35 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__35();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__35);
l_Lean_Elab_Command_elabElabRulesAux___closed__36 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__36();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__36);
l_Lean_Elab_Command_elabElabRulesAux___closed__37 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__37();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__37);
l_Lean_Elab_Command_elabElabRulesAux___closed__38 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__38();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__38);
l_Lean_Elab_Command_elabElabRulesAux___closed__39 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__39();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__39);
l_Lean_Elab_Command_elabElabRulesAux___closed__40 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__40();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__40);
l_Lean_Elab_Command_elabElabRulesAux___closed__41 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__41();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__41);
l_Lean_Elab_Command_elabElabRulesAux___closed__42 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__42();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__42);
l_Lean_Elab_Command_elabElabRulesAux___closed__43 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__43();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__43);
l_Lean_Elab_Command_elabElabRulesAux___closed__44 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__44();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__44);
l_Lean_Elab_Command_elabElabRulesAux___closed__45 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__45();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__45);
l_Lean_Elab_Command_elabElabRulesAux___closed__46 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__46();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__46);
l_Lean_Elab_Command_elabElabRulesAux___closed__47 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__47();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__47);
l_Lean_Elab_Command_elabElabRulesAux___closed__48 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__48();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__48);
l_Lean_Elab_Command_elabElabRulesAux___closed__49 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__49();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__49);
l_Lean_Elab_Command_elabElabRulesAux___closed__50 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__50();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__50);
l_Lean_Elab_Command_elabElabRulesAux___closed__51 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__51();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__51);
l_Lean_Elab_Command_elabElabRulesAux___closed__52 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__52();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__52);
l_Lean_Elab_Command_elabElabRulesAux___closed__53 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__53();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__53);
l_Lean_Elab_Command_elabElabRulesAux___closed__54 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__54();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__54);
l_Lean_Elab_Command_elabElabRulesAux___closed__55 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__55();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__55);
l_Lean_Elab_Command_elabElabRulesAux___closed__56 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__56();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__56);
l_Lean_Elab_Command_elabElabRulesAux___closed__57 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__57();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__57);
l_Lean_Elab_Command_elabElabRulesAux___closed__58 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__58();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__58);
l_Lean_Elab_Command_elabElabRulesAux___closed__59 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__59();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__59);
l_Lean_Elab_Command_elabElabRulesAux___closed__60 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__60();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__60);
l_Lean_Elab_Command_elabElabRulesAux___closed__61 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__61();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__61);
l_Lean_Elab_Command_elabElabRulesAux___closed__62 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__62();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__62);
l_Lean_Elab_Command_elabElabRulesAux___closed__63 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__63();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__63);
l_Lean_Elab_Command_elabElabRulesAux___closed__64 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__64();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__64);
l_Lean_Elab_Command_elabElabRulesAux___closed__65 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__65();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__65);
l_Lean_Elab_Command_elabElabRulesAux___closed__66 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__66();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__66);
l_Lean_Elab_Command_elabElabRulesAux___closed__67 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__67();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__67);
l_Lean_Elab_Command_elabElabRulesAux___closed__68 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__68();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__68);
l_Lean_Elab_Command_elabElabRulesAux___closed__69 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__69();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__69);
l_Lean_Elab_Command_elabElabRulesAux___closed__70 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__70();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__70);
l_Lean_Elab_Command_elabElabRulesAux___closed__71 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__71();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__71);
l_Lean_Elab_Command_elabElabRulesAux___closed__72 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__72();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__72);
l_Lean_Elab_Command_elabElabRulesAux___closed__73 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__73();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__73);
l_Lean_Elab_Command_elabElabRulesAux___closed__74 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__74();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__74);
l_Lean_Elab_Command_elabElabRulesAux___closed__75 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__75();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__75);
l_Lean_Elab_Command_elabElabRulesAux___closed__76 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__76();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__76);
l_Lean_Elab_Command_elabElabRulesAux___closed__77 = _init_l_Lean_Elab_Command_elabElabRulesAux___closed__77();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRulesAux___closed__77);
l_Lean_Elab_Command_elabElabRules___lam__0___closed__0 = _init_l_Lean_Elab_Command_elabElabRules___lam__0___closed__0();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRules___lam__0___closed__0);
l_Lean_Elab_Command_elabElabRules___lam__0___closed__1 = _init_l_Lean_Elab_Command_elabElabRules___lam__0___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRules___lam__0___closed__1);
l_Lean_Elab_Command_elabElabRules___lam__0___closed__2 = _init_l_Lean_Elab_Command_elabElabRules___lam__0___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRules___lam__0___closed__2);
l_Lean_Elab_Command_elabElabRules___lam__0___closed__3 = _init_l_Lean_Elab_Command_elabElabRules___lam__0___closed__3();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRules___lam__0___closed__3);
l_Lean_Elab_Command_elabElabRules___lam__1___closed__0 = _init_l_Lean_Elab_Command_elabElabRules___lam__1___closed__0();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRules___lam__1___closed__0);
l_Lean_Elab_Command_elabElabRules___lam__1___closed__1 = _init_l_Lean_Elab_Command_elabElabRules___lam__1___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRules___lam__1___closed__1);
l_Lean_Elab_Command_elabElabRules___lam__1___closed__2 = _init_l_Lean_Elab_Command_elabElabRules___lam__1___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRules___lam__1___closed__2);
l_Lean_Elab_Command_elabElabRules___lam__1___closed__3 = _init_l_Lean_Elab_Command_elabElabRules___lam__1___closed__3();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRules___lam__1___closed__3);
l_Lean_Elab_Command_elabElabRules___lam__1___closed__4 = _init_l_Lean_Elab_Command_elabElabRules___lam__1___closed__4();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRules___lam__1___closed__4);
l_Lean_Elab_Command_elabElabRules___lam__1___closed__5 = _init_l_Lean_Elab_Command_elabElabRules___lam__1___closed__5();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRules___lam__1___closed__5);
l_Lean_Elab_Command_elabElabRules___lam__1___closed__6 = _init_l_Lean_Elab_Command_elabElabRules___lam__1___closed__6();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRules___lam__1___closed__6);
l_Lean_Elab_Command_elabElabRules___lam__1___closed__7 = _init_l_Lean_Elab_Command_elabElabRules___lam__1___closed__7();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRules___lam__1___closed__7);
l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules__1___closed__0 = _init_l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules__1___closed__0();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules__1___closed__0);
l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules__1___closed__1 = _init_l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules__1___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules__1___closed__1);
l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules__1___closed__2 = _init_l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules__1___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules__1___closed__2);
if (builtin) {res = l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules__1();
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__0 = _init_l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__0();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__0);
l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__1 = _init_l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__1);
l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__2 = _init_l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__2);
l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__3 = _init_l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__3();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__3);
l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__4 = _init_l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__4();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__4);
l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__5 = _init_l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__5();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__5);
l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__6 = _init_l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__6();
lean_mark_persistent(l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3___closed__6);
if (builtin) {res = l_Lean_Elab_Command_elabElabRules___regBuiltin_Lean_Elab_Command_elabElabRules_declRange__3();
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__1 = _init_l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__1();
lean_mark_persistent(l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__1);
l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__0 = _init_l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__0();
lean_mark_persistent(l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__0);
l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__2 = _init_l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__2();
lean_mark_persistent(l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__2);
l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__3 = _init_l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__3();
lean_mark_persistent(l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__3);
l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__1 = _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__1();
lean_mark_persistent(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__1);
l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__0 = _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__0();
lean_mark_persistent(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__0);
l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__2 = _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__2();
lean_mark_persistent(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__2);
l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__3 = _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__3();
lean_mark_persistent(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__3);
l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3___redArg___closed__0 = _init_l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3___redArg___closed__0();
l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3___redArg___closed__1 = _init_l_Lean_PersistentHashMap_containsAux___at___00Lean_PersistentHashMap_contains___at___00__private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3_spec__3_spec__3___redArg___closed__1();
l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__4 = _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__4();
lean_mark_persistent(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__4);
l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__5 = _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__5();
lean_mark_persistent(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__5);
l_Lean_isTracingEnabledFor___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__0___redArg___closed__0 = _init_l_Lean_isTracingEnabledFor___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__0___redArg___closed__0();
lean_mark_persistent(l_Lean_isTracingEnabledFor___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__0___redArg___closed__0);
l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1___closed__0 = _init_l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1___closed__0();
l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1___closed__1 = _init_l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1___closed__1();
lean_mark_persistent(l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1___closed__1);
l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1___closed__2 = _init_l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1___closed__2();
lean_mark_persistent(l_Lean_addTrace___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__1___closed__2);
l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__6 = _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__6();
lean_mark_persistent(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__6);
l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__7 = _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__7();
lean_mark_persistent(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__7);
l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__8 = _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__8();
lean_mark_persistent(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__8);
l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__9 = _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__9();
lean_mark_persistent(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__9);
l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__10 = _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__10();
lean_mark_persistent(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__10);
l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__11 = _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__11();
lean_mark_persistent(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__11);
l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__12 = _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__12();
lean_mark_persistent(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__12);
l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__13 = _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__13();
lean_mark_persistent(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__13);
l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__14 = _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__14();
lean_mark_persistent(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__14);
l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__15 = _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__15();
lean_mark_persistent(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__15);
l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__16 = _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__16();
lean_mark_persistent(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__16);
l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__17 = _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__17();
lean_mark_persistent(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__17);
l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__18 = _init_l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__18();
lean_mark_persistent(l___private_Lean_ExtraModUses_0__Lean_recordExtraModUseCore___at___00Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3_spec__3___closed__18);
l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__4 = _init_l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__4();
lean_mark_persistent(l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__4);
l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__5 = _init_l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__5();
lean_mark_persistent(l_Lean_recordExtraModUseFromDecl___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__3___closed__5);
l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___closed__0 = _init_l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___closed__0();
lean_mark_persistent(l_Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0___redArg___closed__0);
l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__3 = _init_l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__3();
lean_mark_persistent(l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__3);
l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__4 = _init_l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__4();
lean_mark_persistent(l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__4);
l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__5 = _init_l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__5();
lean_mark_persistent(l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__5);
l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__1 = _init_l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__1();
lean_mark_persistent(l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__1);
l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__0 = _init_l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__0();
lean_mark_persistent(l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__0);
l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__2 = _init_l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__2();
lean_mark_persistent(l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__2);
l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__6 = _init_l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__6();
lean_mark_persistent(l_Lean_throwMaxRecDepthAt___at___00Lean_Elab_liftMacroM___at___00Lean_Elab_Command_elabElab_spec__0_spec__13___redArg___closed__6);
l_Lean_Elab_Command_elabElab___closed__0 = _init_l_Lean_Elab_Command_elabElab___closed__0();
lean_mark_persistent(l_Lean_Elab_Command_elabElab___closed__0);
l_Lean_Elab_Command_elabElab___closed__1 = _init_l_Lean_Elab_Command_elabElab___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabElab___closed__1);
l_Lean_Elab_Command_elabElab___closed__2 = _init_l_Lean_Elab_Command_elabElab___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabElab___closed__2);
l_Lean_Elab_Command_elabElab___closed__3 = _init_l_Lean_Elab_Command_elabElab___closed__3();
lean_mark_persistent(l_Lean_Elab_Command_elabElab___closed__3);
l_Lean_Elab_Command_elabElab___closed__4 = _init_l_Lean_Elab_Command_elabElab___closed__4();
lean_mark_persistent(l_Lean_Elab_Command_elabElab___closed__4);
l_Lean_Elab_Command_elabElab___closed__5 = _init_l_Lean_Elab_Command_elabElab___closed__5();
lean_mark_persistent(l_Lean_Elab_Command_elabElab___closed__5);
l_Lean_Elab_Command_elabElab___closed__6 = _init_l_Lean_Elab_Command_elabElab___closed__6();
lean_mark_persistent(l_Lean_Elab_Command_elabElab___closed__6);
l_Lean_Elab_Command_elabElab___closed__7 = _init_l_Lean_Elab_Command_elabElab___closed__7();
lean_mark_persistent(l_Lean_Elab_Command_elabElab___closed__7);
l_Lean_Elab_Command_elabElab___closed__8 = _init_l_Lean_Elab_Command_elabElab___closed__8();
lean_mark_persistent(l_Lean_Elab_Command_elabElab___closed__8);
l_Lean_Elab_Command_elabElab___closed__9 = _init_l_Lean_Elab_Command_elabElab___closed__9();
lean_mark_persistent(l_Lean_Elab_Command_elabElab___closed__9);
l_Lean_Elab_Command_elabElab___closed__10 = _init_l_Lean_Elab_Command_elabElab___closed__10();
lean_mark_persistent(l_Lean_Elab_Command_elabElab___closed__10);
l_Lean_Elab_Command_elabElab___closed__11 = _init_l_Lean_Elab_Command_elabElab___closed__11();
lean_mark_persistent(l_Lean_Elab_Command_elabElab___closed__11);
l_Lean_Elab_Command_elabElab___closed__12 = _init_l_Lean_Elab_Command_elabElab___closed__12();
lean_mark_persistent(l_Lean_Elab_Command_elabElab___closed__12);
l_Lean_Elab_Command_elabElab___closed__13 = _init_l_Lean_Elab_Command_elabElab___closed__13();
lean_mark_persistent(l_Lean_Elab_Command_elabElab___closed__13);
l_Lean_Elab_Command_elabElab___closed__14 = _init_l_Lean_Elab_Command_elabElab___closed__14();
lean_mark_persistent(l_Lean_Elab_Command_elabElab___closed__14);
l_Lean_Elab_Command_elabElab___closed__15 = _init_l_Lean_Elab_Command_elabElab___closed__15();
lean_mark_persistent(l_Lean_Elab_Command_elabElab___closed__15);
l_Lean_Elab_Command_elabElab___closed__16 = _init_l_Lean_Elab_Command_elabElab___closed__16();
lean_mark_persistent(l_Lean_Elab_Command_elabElab___closed__16);
l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab__1___closed__0 = _init_l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab__1___closed__0();
lean_mark_persistent(l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab__1___closed__0);
l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab__1___closed__1 = _init_l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab__1___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab__1___closed__1);
if (builtin) {res = l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab__1();
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__0 = _init_l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__0();
lean_mark_persistent(l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__0);
l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__1 = _init_l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__1);
l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__2 = _init_l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__2);
l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__3 = _init_l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__3();
lean_mark_persistent(l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__3);
l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__4 = _init_l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__4();
lean_mark_persistent(l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__4);
l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__5 = _init_l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__5();
lean_mark_persistent(l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__5);
l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__6 = _init_l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__6();
lean_mark_persistent(l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3___closed__6);
if (builtin) {res = l_Lean_Elab_Command_elabElab___regBuiltin_Lean_Elab_Command_elabElab_declRange__3();
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
